From fafb6657c138d725948412481b4720aff0e13863 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sat, 10 Dec 2016 13:12:20 +0100 Subject: [PATCH] syslogd service: assert conflict with rsyslogd Enabling both these at the same time fails because they implement the same interface. --- nixos/modules/services/logging/syslogd.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/modules/services/logging/syslogd.nix b/nixos/modules/services/logging/syslogd.nix index a0f8e89fa69..fe0b0490811 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";