nixos/secrets/secrets.nix

6 lines
154 B
Nix

{lib}:
lib.mapAttrs' (name: v: (lib.nameValuePair name {
sopsFile = ./encrypted + "/${name}";
format = "binary";
})) (builtins.readDir ./encrypted)