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:
parent
1a05952f44
commit
3d1091eb5b
1 changed files with 6 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue