test
This commit is contained in:
parent
37c55d33fd
commit
94512abbfa
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,8 @@ pushd /etc/nixos/git
|
||||||
home-manager switch -b backup --flake /etc/nixos/git
|
home-manager switch -b backup --flake /etc/nixos/git
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
|
|
||||||
|
pause
|
||||||
|
|
||||||
# Import and trust the GPG key
|
# Import and trust the GPG key
|
||||||
echo "Setting up user GPG key..... "
|
echo "Setting up user GPG key..... "
|
||||||
drive=(lsblk -o serial,name | grep -A 012345679518 | awk {'print $2'})
|
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
|
sudo rmdir /tmp/drive
|
||||||
echo -e "5\ny\n" | gpg --command-fd 0 --expert --edit-key albert@sysctl.io trust
|
echo -e "5\ny\n" | gpg --command-fd 0 --expert --edit-key albert@sysctl.io trust
|
||||||
|
|
||||||
|
pause
|
||||||
|
|
||||||
# Setup SOPS
|
# Setup SOPS
|
||||||
echo "!!!!! Copy this key to .sops.yaml: "
|
echo "!!!!! Copy this key to .sops.yaml: "
|
||||||
sudo ssh-to-pgp \
|
sudo ssh-to-pgp \
|
||||||
|
|
Loading…
Reference in a new issue