diff --git a/nix/base-system/modules/vector.nix b/nix/base-system/modules/vector.nix index 3df7ed0..d1ceab7 100644 --- a/nix/base-system/modules/vector.nix +++ b/nix/base-system/modules/vector.nix @@ -47,5 +47,13 @@ with lib; RunAtLoad = true; }; }; + + environment.etc."newsyslog.d/org.nixos.vector.conf" = mkIf config.services.vector.enable { + text = '' + # logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] + ${config.services.vector.stdoutPath} zaphar:staff 644 10 1000 * BJ ${config.services.vector.pidPath} 1 + ${config.services.vector.stderrPath} zaphar:staff 644 10 1000 * BJ ${config.services.vector.pidPath} 1 + ''; + }; }; }