diff options
| author | seth <[email protected]> | 2023-11-19 05:19:05 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-11-19 05:28:01 -0500 |
| commit | 07a6858fd7ef6ea6794cc37323d7c9cf1162d5b6 (patch) | |
| tree | a123857e27802b133b105b552b6ef48a7593bae4 /secrets/secrets.nix | |
| parent | 2da304a66b759e8047b94a31758ffc02203e411c (diff) | |
secrets: reorganize & rekey
Diffstat (limited to 'secrets/secrets.nix')
| -rw-r--r-- | secrets/secrets.nix | 50 |
1 files changed, 35 insertions, 15 deletions
diff --git a/secrets/secrets.nix b/secrets/secrets.nix index bd1fb57..e2e78e2 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -1,18 +1,38 @@ let - main = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ5K+yLHuz4kyCkJDX2Gd/uGVNEJroIAU/h0f9E2Mapn getchoo-nix" - ]; + toSecrets = import ./toSecrets.nix; - atlas = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBA861lnShM2ejpzn9arzhpw33I4XdtULfZWhMp/plvL root@atlas"] ++ main; -in { - "shared/rootPassword.age".publicKeys = main; - "shared/sethPassword.age".publicKeys = main; + owners = { + getchoo = "age1zyqu6zkvl0rmlejhm5auzmtflfy4pa0fzwm0nzy737fqrymr7crsqrvnhs"; + }; - "systems/atlas/rootPassword.age".publicKeys = atlas; - "systems/atlas/userPassword.age".publicKeys = atlas; - "systems/atlas/miniflux.age".publicKeys = atlas; - "systems/atlas/tailscaleAuthKey.age".publicKeys = atlas; - "systems/atlas/cloudflaredCreds.age".publicKeys = atlas; - "systems/atlas/cloudflareApiKey.age".publicKeys = atlas; - "systems/atlas/teawieBot.age".publicKeys = atlas; -} + hosts = { + glados = { + owner = owners.getchoo; + files = [ + "rootPassword.age" + "sethPassword.age" + ]; + }; + + glados-wsl = { + pubkey = "age16jps7cr3jtjjusf3p3yadcmnmmh2kzfyfcfpv2zs6hrmnlthhf2sr05jdn"; + owner = owners.getchoo; + inherit (hosts.glados) files; + }; + + atlas = { + pubkey = "age18eu3ya4ucd2yzdrpkpg7wrymrxewt8j3zj2p2rqgcjeruacp0dgqryp39z"; + owner = owners.getchoo; + files = [ + "rootPassword.age" + "userPassword.age" + "miniflux.age" + "tailscaleAuthKey.age" + "cloudflaredCreds.age" + "cloudflareApiKey.age" + "teawieBot.age" + ]; + }; + }; +in + toSecrets hosts |
