fix conditions for enabling services

Without this fix, kresd and others would get enabled even though the
main mailserver option is disabled.
This commit is contained in:
Silvan Mosberger
2018-05-22 23:08:49 +02:00
parent 68232ddf87
commit 845e06e61a
7 changed files with 11 additions and 11 deletions

View File

@@ -39,7 +39,7 @@ let
'';
postexecString = optionalString postexecDefined "cmd_postexec ${postexecWrapped}";
in {
config = mkIf cfg.backup.enable {
config = mkIf (cfg.enable && cfg.backup.enable) {
services.rsnapshot = {
enable = true;
cronIntervals = cfg.backup.cronIntervals;