feat: Set up secrets.nix and secret editing

This commit is contained in:
punkfairie 2025-03-09 15:13:48 -07:00
parent fd9a5e5f84
commit 820b6b523b
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
2 changed files with 15 additions and 0 deletions

View file

@ -70,6 +70,10 @@ genFirefoxAddons:
overlays/firefox-addons/addons.json \
overlays/firefox-addons/addons.nix
[group('maintainence')]
secret name:
cd secrets && agenix -e {{name}}.age && cd -
alias s := search
search this:
nh search {{this}}

11
secrets/secrets.nix Normal file
View file

@ -0,0 +1,11 @@
let
# To allow editing of secrets.
marley = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAk+purlXsZMEPDHSO+JDnDNtHB4OBlNThCyC6tIACfm marley@nyx";
users = [marley];
nyx = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMgbXvNv4phFTrtVBJQWP/+HkKn14nkPUrIr5Vu2K1Zf root@nyx";
marleycentre = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEA86DphSL36GsvatkXgFU1ONzt53UzXdUaQN1EBWeCD root@nixos";
marleynet = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIArAAwU4JX7wa5X3Un3q5b+ZD52j0nCnNsGEybWf/7SB root@nixos";
systems = [nyx marleycentre marleynet];
in {
}