mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-06-15 09:09:14 +02:00
base/various: add to slice system-monitoring
This commit is contained in:
@@ -1,13 +1,20 @@
|
||||
{ ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.services.rsyslogd;
|
||||
in
|
||||
{
|
||||
services.rsyslogd = {
|
||||
enable = true;
|
||||
enable = lib.mkDefault true;
|
||||
defaultConfig = ''
|
||||
*.* @loghost.pvv.ntnu.no
|
||||
'';
|
||||
};
|
||||
|
||||
services.journald.extraConfig = ''
|
||||
services.journald.extraConfig = lib.mkIf cfg.enable ''
|
||||
ForwardToSyslog=yes
|
||||
'';
|
||||
|
||||
systemd.services = lib.mkIf cfg.enable {
|
||||
"syslog".serviceConfig.Slice = "system-monitoring.slice";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user