This commit is contained in:
iFargle 2023-09-23 21:34:07 +09:00
parent 37c55d33fd
commit 94512abbfa

View file

@ -5,6 +5,8 @@ pushd /etc/nixos/git
home-manager switch -b backup --flake /etc/nixos/git
source ~/.bashrc
pause
# Import and trust the GPG key
echo "Setting up user GPG key..... "
drive=(lsblk -o serial,name | grep -A 012345679518 | awk {'print $2'})
@ -15,6 +17,8 @@ gpg --import /tmp/drive/gpg/albert@sysctl.io/privkey.asc
sudo rmdir /tmp/drive
echo -e "5\ny\n" | gpg --command-fd 0 --expert --edit-key albert@sysctl.io trust
pause
# Setup SOPS
echo "!!!!! Copy this key to .sops.yaml: "
sudo ssh-to-pgp \