Skip to content

Commit

Permalink
lul v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rairosu committed Jan 24, 2024
1 parent 6b755a5 commit d9b364a
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 @@ -56,7 +56,7 @@ let
# The idea is to match everything that looks like `$term =`
# but not `# $term something something`
# or `# $term = some value` because those are comments.
configContainsSetting = lines: term: builtins.match "^[^#]*\b${term}\b.*=" lines;
configContainsSetting = lines: term: match "^[^#]*\b${term}\b.*=" lines;

warnAboutExtraConfigCollisions = map mkExtraConfigCollisionWarning (filter (configContainsSetting cfg.extraConfig) automaticallySetPluginSettings);

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 d9b364a

Please sign in to comment.