poseidon: setup agenix secrets

This commit is contained in:
Antoine Martin 2022-02-07 17:16:52 +01:00
parent 81193b919b
commit 565b33dd3e
2 changed files with 17 additions and 0 deletions

View file

@ -12,6 +12,7 @@ in
./hardware-configuration.nix
./home.nix
./secrets.nix
];
# Use the GRUB 2 boot loader.

View file

@ -0,0 +1,16 @@
{ config, lib, options, ... }:
{
config.age = {
secrets =
let
toSecret = name: { ... }@attrs: {
file = ./../../modules/secrets + "/${name}.age";
} // attrs;
in
lib.mapAttrs toSecret {
"users/alarsyo-hashed-password" = {};
"users/root-hashed-password" = {};
};
};
}