secrets/sops: set dummy default sops file

This commit is contained in:
Jörg Thalheim 2023-09-03 09:40:31 +02:00 committed by Mic92
parent 890b674c46
commit 4e19b7c085

View File

@ -63,5 +63,7 @@
format = "binary";
})
secrets;
# To get proper error messages about missing secrets we need a dummy secret file that is always present
sops.defaultSopsFile = lib.mkIf config.sops.validateSopsFiles (lib.mkDefault (builtins.toString (pkgs.writeText "dummy.yaml" "")));
};
}