diff --git a/hosts/poseidon/default.nix b/hosts/poseidon/default.nix index f458015..1e8d3eb 100644 --- a/hosts/poseidon/default.nix +++ b/hosts/poseidon/default.nix @@ -12,6 +12,7 @@ in ./hardware-configuration.nix ./home.nix + ./secrets.nix ]; # Use the GRUB 2 boot loader. diff --git a/hosts/poseidon/secrets.nix b/hosts/poseidon/secrets.nix new file mode 100644 index 0000000..2b64a0d --- /dev/null +++ b/hosts/poseidon/secrets.nix @@ -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" = {}; + }; + }; +}