diff --git a/docs/setup.sh b/docs/setup.sh index 01985178..0b2d39a4 100755 --- a/docs/setup.sh +++ b/docs/setup.sh @@ -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 \ No newline at end of file +echo "Upd + + +popd \ No newline at end of file diff --git a/home-manager/common/software/cli/bash.nix b/home-manager/common/software/cli/bash.nix index f615787a..02509d52 100644 --- a/home-manager/common/software/cli/bash.nix +++ b/home-manager/common/software/cli/bash.nix @@ -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: