test
This commit is contained in:
parent
2a3199ec40
commit
80705b2e93
2 changed files with 16 additions and 4 deletions
|
@ -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
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue