This commit is contained in:
iFargle 2023-09-23 09:19:07 +09:00
parent 2a3199ec40
commit 80705b2e93
2 changed files with 16 additions and 4 deletions

View file

@ -29,13 +29,14 @@ git add keys/hosts/`hostname`.asc
git commit -am "Setup: `whoami`@`hostname`" git commit -am "Setup: `whoami`@`hostname`"
git push git push
popd
echo echo
echo echo
echo "Complete. Once '.sops.yaml' is updated, " echo "Complete. Once '.sops.yaml' is updated, "
echo "you may run 'sops updateKeys secrets/*.yaml'" echo "you may run 'update-secrets'"
echo "and reboot." echo "and reboot."
# Update your .sops.yaml with this key # Update your .sops.yaml with this key
# sops updatekeys secrets/secrets.yaml echo "Upd
# sops updatekeys secrets/tailscale.yaml
popd

View file

@ -47,6 +47,17 @@
sudo nix-env -u --always sudo nix-env -u --always
sudo nix-collect-garbage -d sudo nix-collect-garbage -d
} }
install-secrets() {
pushd /etc/nixos/git
nix develop -c update-repo
popd
}
update-repo() {
for i in $(ls secrets); do
echo "Updateing secrets/$i;
sops updatekeys secrets/$i -y
done
}
''; '';
shellAliases = { shellAliases = {
# nVidia prime selector alias: # nVidia prime selector alias: