base/various: add to slice system-monitoring

This commit is contained in:
h7x4
2026-06-13 04:30:40 +09:00
parent 526b55c49a
commit b533b09c8f
7 changed files with 29 additions and 6 deletions
+10 -3
View File
@@ -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";
};
}