infra/config/secrets/default.nix
2023-07-03 03:46:06 +02:00

7 lines
194 B
Nix

{
age.secrets = with builtins;
listToAttrs (map (k: {
name = substring 0 (stringLength k - 4) k;
value = {file = ./. + "/${k}";};
}) (attrNames (import ./secrets.nix)));
}