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:
parent
68232ddf87
commit
845e06e61a
7 changed files with 11 additions and 11 deletions
|
@ -20,7 +20,7 @@ let
|
|||
cfg = config.mailserver;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.monitoring.enable {
|
||||
config = lib.mkIf (cfg.enable && cfg.monitoring.enable) {
|
||||
services.monit = {
|
||||
enable = true;
|
||||
config = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue