poseidon: setup agenix secrets
This commit is contained in:
parent
81193b919b
commit
565b33dd3e
|
@ -12,6 +12,7 @@ in
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
./home.nix
|
./home.nix
|
||||||
|
./secrets.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
# Use the GRUB 2 boot loader.
|
||||||
|
|
16
hosts/poseidon/secrets.nix
Normal file
16
hosts/poseidon/secrets.nix
Normal 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" = {};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue