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
@ -59,6 +59,12 @@ in
|
|||||||
|
|
||||||
config = mkIf cfg.enable {
|
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 ];
|
environment.systemPackages = [ pkgs.incron ];
|
||||||
|
|
||||||
security.wrappers.incrontab.source = "${pkgs.incron}/bin/incrontab";
|
security.wrappers.incrontab.source = "${pkgs.incron}/bin/incrontab";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user