infra/config/secrets/default.nix

8 lines
194 B
Nix
Raw Normal View History

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