summary refs log tree commit diff
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2018-08-28 23:50:55 +0000
committerAaron Andersen <aaron@fosslib.net>2018-08-28 23:50:55 +0000
commit3d1091eb5b50667b71cd174b0beaadddceba2364 (patch)
tree04842239c814253f7e0993d6891d3b5cf6d85af6
parent1a05952f442393a2a489f2d47c9a42e839af7ea9 (diff)
downloadnixpkgs-3d1091eb5b50667b71cd174b0beaadddceba2364.tar
nixpkgs-3d1091eb5b50667b71cd174b0beaadddceba2364.tar.gz
nixpkgs-3d1091eb5b50667b71cd174b0beaadddceba2364.tar.bz2
nixpkgs-3d1091eb5b50667b71cd174b0beaadddceba2364.tar.lz
nixpkgs-3d1091eb5b50667b71cd174b0beaadddceba2364.tar.xz
nixpkgs-3d1091eb5b50667b71cd174b0beaadddceba2364.tar.zst
nixpkgs-3d1091eb5b50667b71cd174b0beaadddceba2364.zip
added a check to make sure a situation where a defined configuration wouldn't be unused as per recommended by @maurer
-rw-r--r--nixos/modules/services/monitoring/incron.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/incron.nix b/nixos/modules/services/monitoring/incron.nix
index edba38140c6..c850bad881c 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";