Skip to content

Commit

Permalink
Update modules/sops/default.nix
Browse files Browse the repository at this point in the history
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
  • Loading branch information
munnik and Mic92 authored Oct 22, 2024
1 parent 9f4f1c0 commit a49c800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sops/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ in {
(builtins.isString secret.sopsFile && lib.hasPrefix builtins.storeDir secret.sopsFile);
message = "'${secret.sopsFile}' is not in the Nix store. Either add it to the Nix store or set sops.validateSopsFiles to false";
} {
assertion = secret.owner != "root" && secret.uid != null || secret.owner != "root" && secret.uid == null;
assertion = secret.owner != "root" -> secret.uid == null;
message = "In ${secret.name} exactly one of sops.owner and sops.uid must be set";
} {
assertion = secret.group == "" && secret.gid != null || secret.group != "" && secret.gid == null;
Expand Down

0 comments on commit a49c800

Please sign in to comment.