monitoring: surround with mkMerge

This commit is contained in:
ibizaman 2025-11-02 10:37:39 +01:00
parent 6e2cf2d035
commit 4568c45e85

View file

@ -158,7 +158,8 @@ in
};
};
config = lib.mkIf cfg.enable {
config = lib.mkMerge [
(lib.mkIf cfg.enable {
assertions = [
{
assertion = (!(isNull cfg.smtp)) -> builtins.length cfg.contactPoints > 0;
@ -637,5 +638,6 @@ in
};
};
};
};
})
];
}