about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-12-10 13:12:20 +0100
committerJoachim Fasting <joachifm@fastmail.fm>2016-12-10 20:35:39 +0100
commitfafb6657c138d725948412481b4720aff0e13863 (patch)
treed9417ce485d6939c28bc2dbdf4fc1fbc605bc0dd /nixos/modules
parent19b96176b46a0c5a6ef0bc4ad56e5233ca32e1c9 (diff)
downloadnixlib-fafb6657c138d725948412481b4720aff0e13863.tar
nixlib-fafb6657c138d725948412481b4720aff0e13863.tar.gz
nixlib-fafb6657c138d725948412481b4720aff0e13863.tar.bz2
nixlib-fafb6657c138d725948412481b4720aff0e13863.tar.lz
nixlib-fafb6657c138d725948412481b4720aff0e13863.tar.xz
nixlib-fafb6657c138d725948412481b4720aff0e13863.tar.zst
nixlib-fafb6657c138d725948412481b4720aff0e13863.zip
syslogd service: assert conflict with rsyslogd
Enabling both these at the same time fails because they implement the
same interface.
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/logging/syslogd.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/logging/syslogd.nix b/nixos/modules/services/logging/syslogd.nix
index a0f8e89fa691..fe0b0490811d 100644
--- a/nixos/modules/services/logging/syslogd.nix
+++ b/nixos/modules/services/logging/syslogd.nix
@@ -100,6 +100,12 @@ in
 
   config = mkIf cfg.enable {
 
+    assertions =
+      [ { assertion = !config.services.rsyslogd.enable;
+          message = "rsyslogd conflicts with syslogd";
+        }
+      ];
+
     environment.systemPackages = [ pkgs.sysklogd ];
 
     services.syslogd.extraParams = optional cfg.enableNetworkInput "-r";