mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-06-15 09:09:14 +02:00
21 lines
390 B
Nix
21 lines
390 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.services.rsyslogd;
|
|
in
|
|
{
|
|
services.rsyslogd = {
|
|
enable = lib.mkDefault true;
|
|
defaultConfig = ''
|
|
*.* @loghost.pvv.ntnu.no
|
|
'';
|
|
};
|
|
|
|
services.journald.extraConfig = lib.mkIf cfg.enable ''
|
|
ForwardToSyslog=yes
|
|
'';
|
|
|
|
systemd.services = lib.mkIf cfg.enable {
|
|
"syslog".serviceConfig.Slice = "system-monitoring.slice";
|
|
};
|
|
}
|