diff options
author | Aaron Andersen <aaron@fosslib.net> | 2018-08-28 23:50:55 +0000 |
---|---|---|
committer | Aaron Andersen <aaron@fosslib.net> | 2018-08-28 23:50:55 +0000 |
commit | 3d1091eb5b50667b71cd174b0beaadddceba2364 (patch) | |
tree | 04842239c814253f7e0993d6891d3b5cf6d85af6 /nixos | |
parent | 1a05952f442393a2a489f2d47c9a42e839af7ea9 (diff) | |
download | nixlib-3d1091eb5b50667b71cd174b0beaadddceba2364.tar nixlib-3d1091eb5b50667b71cd174b0beaadddceba2364.tar.gz nixlib-3d1091eb5b50667b71cd174b0beaadddceba2364.tar.bz2 nixlib-3d1091eb5b50667b71cd174b0beaadddceba2364.tar.lz nixlib-3d1091eb5b50667b71cd174b0beaadddceba2364.tar.xz nixlib-3d1091eb5b50667b71cd174b0beaadddceba2364.tar.zst nixlib-3d1091eb5b50667b71cd174b0beaadddceba2364.zip |
added a check to make sure a situation where a defined configuration wouldn't be unused as per recommended by @maurer
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/monitoring/incron.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/incron.nix b/nixos/modules/services/monitoring/incron.nix index edba38140c6c..c850bad881c4 100644 --- a/nixos/modules/services/monitoring/incron.nix +++ b/nixos/modules/services/monitoring/incron.nix @@ -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"; |