sops: fix decrypte path on machine

This commit is contained in:
Jörg Thalheim 2024-04-01 12:58:05 +02:00
parent b342e3f991
commit 5b838c0d9c

View File

@ -46,6 +46,7 @@ in
clanCore.facts.secretModule = "clan_cli.facts.secret_modules.sops";
clanCore.facts.secretUploadDirectory = lib.mkDefault "/var/lib/sops-nix";
sops.secrets = builtins.mapAttrs (name: _: {
name = lib.strings.removePrefix "${config.networking.hostName}-" name;
sopsFile = config.clanCore.clanDir + "/sops/secrets/${name}/secret";
format = "binary";
}) secrets;