Skip to content

Commit

Permalink
lul
Browse files Browse the repository at this point in the history
  • Loading branch information
Rairosu committed Jan 24, 2024
1 parent 84748c4 commit 6b755a5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nixos/modules/services/mail/dovecot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let
concatStringsSep flatten imap1 isList literalExpression mapAttrsToList
mkEnableOption mkIf mkOption mkRemovedOptionModule optional optionalAttrs
optionalString singleton types mkRenamedOptionModule nameValuePair
mapAttrs' listToAttrs filter;
mapAttrs' listToAttrs match filter;

cfg = config.services.dovecot2;
dovecotPkg = pkgs.dovecot;
Expand Down Expand Up @@ -665,10 +665,10 @@ in
assertion = cfg.showPAMFailure -> cfg.enablePAM;
message = "dovecot is configured with showPAMFailure while enablePAM is disabled";
}
{
assertion = cfg.sieve.scripts != {} -> (cfg.mailUser != null && cfg.mailGroup != null);
message = "dovecot requires mailUser and mailGroup to be set when `sieve.scripts` is set";
}
# {
# assertion = cfg.sieve.scripts != {} -> (cfg.mailUser != null && cfg.mailGroup != null);
# message = "dovecot requires mailUser and mailGroup to be set when `sieve.scripts` is set";
# }
];

};
Expand Down

0 comments on commit 6b755a5

Please sign in to comment.