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:
parent
19b96176b4
commit
fafb6657c1
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue