3
0
Fork 0
forked from mirrors/nixpkgs

syslogd service: assert conflict with rsyslogd

Enabling both these at the same time fails because they implement the
same interface.
This commit is contained in:
Joachim Fasting 2016-12-10 13:12:20 +01:00
parent 19b96176b4
commit fafb6657c1
No known key found for this signature in database
GPG key ID: 7544761007FE4E08

View file

@ -100,6 +100,12 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
assertions =
[ { assertion = !config.services.rsyslogd.enable;
message = "rsyslogd conflicts with syslogd";
}
];
environment.systemPackages = [ pkgs.sysklogd ]; environment.systemPackages = [ pkgs.sysklogd ];
services.syslogd.extraParams = optional cfg.enableNetworkInput "-r"; services.syslogd.extraParams = optional cfg.enableNetworkInput "-r";