From 80705b2e937236d3f7869513225c9946bcd6b48f Mon Sep 17 00:00:00 2001 From: iFargle Date: Sat, 23 Sep 2023 09:19:07 +0900 Subject: [PATCH] test --- docs/setup.sh | 9 +++++---- home-manager/common/software/cli/bash.nix | 11 +++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) 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: