mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
30 lines
543 B
Nix
30 lines
543 B
Nix
{ pkgs, ... }:
|
|
{
|
|
services.rsyslogd = {
|
|
enable = true;
|
|
defaultConfig = ''
|
|
:programname, isequal, "postfix" /var/log/postfix.log
|
|
|
|
auth.* -/var/log/auth.log
|
|
'';
|
|
};
|
|
services.logrotate.configFile = pkgs.writeText "logrotate.conf" ''
|
|
weekly
|
|
missingok
|
|
notifempty
|
|
rotate 4
|
|
"/var/log/postfix.log" {
|
|
compress
|
|
delaycompress
|
|
weekly
|
|
rotate 156
|
|
}
|
|
'';
|
|
# "/var/log/caddy/*.log" {
|
|
# compress
|
|
# delaycompress
|
|
# weekly
|
|
# rotate 26
|
|
# }
|
|
}
|