added a check to make sure a situation where a defined configuration wouldn't be unused as per recommended by @maurer

This commit is contained in:
Aaron Andersen 2018-08-28 23:50:55 +00:00
parent 1a05952f44
commit 3d1091eb5b

View file

@ -59,6 +59,12 @@ in
config = mkIf cfg.enable {
assertions = [
{ assertion = cfg.allow != null -> cfg.deny == null;
message = "If `services.incron.allow` is set then `services.incron.deny` will be ignored.";
}
];
environment.systemPackages = [ pkgs.incron ];
security.wrappers.incrontab.source = "${pkgs.incron}/bin/incrontab";