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 push
popd
echo
echo
echo "Complete. Once '.sops.yaml' is updated, "
echo "you may run 'sops updateKeys secrets/*.yaml'"
echo "you may run 'update-secrets'"
echo "and reboot."
# Update your .sops.yaml with this key
# sops updatekeys secrets/secrets.yaml
# sops updatekeys secrets/tailscale.yaml
echo "Upd
popd

View file

@ -47,6 +47,17 @@
sudo nix-env -u --always
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 = {
# nVidia prime selector alias: