diff options
author | Linnnus <[email protected]> | 2023-09-30 12:09:19 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-09-30 12:10:15 +0200 |
commit | 8798940cad00296d3a9e88988e6678eef670d21a (patch) | |
tree | 79a6f92b6ed828c6fa80383c48be6f7a3a8ca8d6 /secrets/secrets.nix | |
parent | ad288b5c49c7e7323ad11ec2b1320905ba1b8674 (diff) |
Move secret management to agenix
- https://nixos.wiki/wiki/Agenix
- https://github.com/ryantm/agenix
- https://jonascarpay.com/posts/2021-07-27-agenix.html
Diffstat (limited to 'secrets/secrets.nix')
-rw-r--r-- | secrets/secrets.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/secrets/secrets.nix b/secrets/secrets.nix new file mode 100644 index 0000000..0f349a8 --- /dev/null +++ b/secrets/secrets.nix @@ -0,0 +1,10 @@ +# This file conatins configuration for the agenix CLI. It is not actually +# imported into the system cofniguration. + +let + metadata = builtins.fromTOML (builtins.readFile ../metadata.toml); + publicKeys = map (builtins.getAttr "sshPubKey") (builtins.attrValues metadata.hosts); +in +{ + "cloudflare-ddns-token.age".publicKeys = publicKeys; +} |