fix home-manager module

This commit is contained in:
Pablo Ovelleiro Corral 2025-01-15 16:00:53 +01:00 committed by Jörg Thalheim
parent 7eb645636c
commit 1f8e8fcf3f
2 changed files with 29 additions and 46 deletions

View file

@ -24,7 +24,7 @@ let
) [ ] (builtins.attrValues secrets);
in
if failedAssertions != [ ] then
if cfg.validateSopsFiles && failedAssertions != [ ] then
throw "\nFailed assertions:\n${lib.concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}"
else
writeTextFile {