diff options
| author | Mel <einebeere@gmail.com> | 2024-12-30 16:31:02 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-12-30 16:31:02 +0100 |
| commit | a416a9fb83def3bc00c04d57ef9d2284c2c1df4e (patch) | |
| tree | 8365aa813bbe59c074514b41e29fa93bd3f3ba2a /configuration/secrets/keys.nix | |
| parent | c69a5189925637910c1e5ceb9ce8b45992390521 (diff) | |
| download | specimen-a416a9fb83def3bc00c04d57ef9d2284c2c1df4e.tar.zst specimen-a416a9fb83def3bc00c04d57ef9d2284c2c1df4e.zip | |
Move secrets folder into configuration
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'configuration/secrets/keys.nix')
| -rw-r--r-- | configuration/secrets/keys.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/configuration/secrets/keys.nix b/configuration/secrets/keys.nix new file mode 100644 index 0000000..6f3a57d --- /dev/null +++ b/configuration/secrets/keys.nix @@ -0,0 +1,22 @@ +let + # machines and their host key that are included in this configuration, + # in this case, just one. + machines = { + specimen = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMuIJFXse7iSMaOoBdr/WGqbNBwWLQTpFw6R8ram89gB"; + }; + + # users that can sign secrets, with all of their keys. + admins = { + mel = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEDujTul5wWyGnidLnNuJDRze0Up29l2cDpyKdmvW2Ls" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEK96G1n31aJsZOrux3BKM0ztzi/SFAVHn0MsGkPDdqY" + ]; + philip = [ ]; + }; +in +{ + inherit machines admins; + + allAdminKeys = with builtins; concatLists (attrValues admins); + allMachineKeys = builtins.attrValues machines; +} |
