much nicer secret management for the user
This commit is contained in:
parent
102b259832
commit
bc35b7bc8c
1 changed files with 13 additions and 8 deletions
21
secrets.nix
21
secrets.nix
|
|
@ -8,11 +8,16 @@ let
|
|||
systems = [luna solis terra];
|
||||
|
||||
all = [horseman] ++ systems;
|
||||
in {
|
||||
"secrets/wifi.age".publicKeys = all;
|
||||
"secrets/ssh/id_personal.age".publicKeys = all;
|
||||
"secrets/ssh/id_personal.pub.age".publicKeys = all;
|
||||
"secrets/ssh/id_github.age".publicKeys = all;
|
||||
"secrets/ssh/id_github.pub.age".publicKeys = all;
|
||||
"secrets/ssh/config.age".publicKeys = all;
|
||||
}
|
||||
|
||||
secrets = [
|
||||
"wifi"
|
||||
"tailscale"
|
||||
"ssh/id_personal"
|
||||
"ssh/id_personal.pub"
|
||||
"ssh/id_github"
|
||||
"ssh/id_github.pub"
|
||||
"ssh/config"
|
||||
];
|
||||
attrs = (map (secret: {"secrets/${secret}.age".publicKeys = all;}) secrets);
|
||||
|
||||
in builtins.foldl' (acc: curr: acc // curr) {} attrs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue