commit fc1afcc4bc99dc042e87573e8a9e87c593207820 (tree) parent 9e68777882c9f6143d088618c1415e316d372fb1 Author: Motiejus Jakštys <desired.mta@gmail.com> Date: Thu, 16 Apr 2020 09:56:05 +0300 Rename `secrets` to `nonlinks` Diffstat:
13 files changed, 59 insertions(+), 25 deletions(-)
diff --git a/README.md b/README.md @@ -1,6 +1,23 @@ dotfiles --------- +======== + +This is my poor-man's configuration management. + +Split into 3 parts: + +Dotfiles in $HOME +----------------- $ git clone --recursive git@github.com:motiejus/dotfiles.git .dotfiles $ cd .dotfiles $ stow bash ctags tmux vim + +Dotfiles in / +------------- + +See `root/`. + +Secrets & non-symlinks +---------------------- + +See `nonlinks`. diff --git a/nonlinks/README.md b/nonlinks/README.md @@ -0,0 +1,21 @@ +root directory +-------------- + + $ git clone --recursive git@github.com:motiejus/dotfiles.git .dotfiles + $ cd .dotfiles/nonlinks/ + $ git crypt unlock <(gpg -d <(sed -n '/BEGIN PGP/,/END PGP/ p' README.md)) + $ make -C $(hostname) install + +This is the symmetric encryption key for `git-crypt`: + +``` +-----BEGIN PGP MESSAGE----- + +jA0ECQMCWhpsUYzqWGDq0sAAAYTR9moDry/FpymMu2OhEERTLumZdCsytGtZFBCJ +US3IGVBavQago+jSw92hDYupruCL7oNZs50wobS80e5a6Tw+Pw+t1LUpmmwxLXnX +S5cDBvVox7NMUAx7v0SzNhoIPc4S4lfP+zS1CQSpsVPRBujQQoZBYdGXBosyO2lq +ebv4WpgncbBKQhT2RqZV4+DR4NYqmZqz1A4TKZx5b1ViaZKjnQwwkL2TtcSPGsU4 +cJk5Si6XZ5ItOmFBDjHPCnKt +=ADT3 +-----END PGP MESSAGE----- +``` diff --git a/nonlinks/mtpad/Makefile b/nonlinks/mtpad/Makefile @@ -0,0 +1,4 @@ +.PHONY: install +install: + install -o root -g root -m 600 mnt/.ssh/id_ed25519 /mnt/.ssh/ + install -o root -g root -m 644 etc/fstab /etc diff --git a/nonlinks/mtpad/etc/fstab b/nonlinks/mtpad/etc/fstab @@ -0,0 +1,16 @@ +# /etc/fstab: static file system information. +# +# Use 'blkid' to print the universally unique identifier for a +# device; this may be used with UUID= as a more robust way to name devices +# that works even if disks are added and removed. See fstab(5). +# +# <file system> <mount point> <type> <options> <dump> <pass> +/dev/mapper/nvme0n1p3_crypt / btrfs defaults,subvol=@ 0 1 +# /boot was on /dev/nvme0n1p2 during installation +UUID=cb95c0cd-c3ed-4e27-a58b-5722e56db044 /boot ext4 defaults 0 2 +# /boot/efi was on /dev/nvme0n1p1 during installation +UUID=E632-AA6B /boot/efi vfat umask=0077 0 1 +/dev/mapper/nvme0n1p3_crypt /home btrfs defaults,subvol=@home 0 2 +#/swapfile none swap sw 0 0 + +motiejus@vno1.jakstys.lt:/bigdisk /mnt/rpi4b fuse.sshfs noauto,x-systemd.automount,_netdev,users,uid=1000,gid=1000,IdentityFile=/mnt/.ssh/id_ed25519,allow_other,reconnect 0 0 diff --git a/secrets/mtpad/mnt/.ssh/id_ed25519 b/nonlinks/mtpad/mnt/.ssh/id_ed25519 Binary files differ. diff --git a/secrets/rpi4b/Makefile b/nonlinks/rpi4b/Makefile diff --git a/secrets/rpi4b/etc/nginx/letsencrypt/account.key b/nonlinks/rpi4b/etc/nginx/letsencrypt/account.key Binary files differ. diff --git a/secrets/rpi4b/etc/nginx/letsencrypt/dhparam.pem b/nonlinks/rpi4b/etc/nginx/letsencrypt/dhparam.pem Binary files differ. diff --git a/secrets/rpi4b/etc/nginx/letsencrypt/domain.csr b/nonlinks/rpi4b/etc/nginx/letsencrypt/domain.csr Binary files differ. diff --git a/secrets/rpi4b/etc/nginx/letsencrypt/domain.key b/nonlinks/rpi4b/etc/nginx/letsencrypt/domain.key Binary files differ. diff --git a/secrets/rpi4b/etc/postfix/sasl_passwd b/nonlinks/rpi4b/etc/postfix/sasl_passwd Binary files differ. diff --git a/secrets/README.md b/secrets/README.md @@ -1,21 +0,0 @@ -root directory --------------- - - $ git clone --recursive git@github.com:motiejus/dotfiles.git .dotfiles - $ cd .dotfiles/secrets/ - $ git crypt unlock <(gpg -d <(sed -n '/BEGIN PGP/,/END PGP/ p' README.md)) - $ make -C $(hostname) install - -This is the symmetric encryption key for `git-crypt`: - -``` ------BEGIN PGP MESSAGE----- - -jA0ECQMCWhpsUYzqWGDq0sAAAYTR9moDry/FpymMu2OhEERTLumZdCsytGtZFBCJ -US3IGVBavQago+jSw92hDYupruCL7oNZs50wobS80e5a6Tw+Pw+t1LUpmmwxLXnX -S5cDBvVox7NMUAx7v0SzNhoIPc4S4lfP+zS1CQSpsVPRBujQQoZBYdGXBosyO2lq -ebv4WpgncbBKQhT2RqZV4+DR4NYqmZqz1A4TKZx5b1ViaZKjnQwwkL2TtcSPGsU4 -cJk5Si6XZ5ItOmFBDjHPCnKt -=ADT3 ------END PGP MESSAGE----- -``` diff --git a/secrets/mtpad/Makefile b/secrets/mtpad/Makefile @@ -1,3 +0,0 @@ -.PHONY: install -install: - install -o root -g root -m 600 mnt/.ssh/id_ed25519 /mnt/.ssh/