logrotate

This commit is contained in:
Sakooooo 2024-12-31 19:15:07 +04:00
parent 6fd60a404c
commit 4e826915bd
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 9 additions and 0 deletions

View file

@ -31,6 +31,8 @@ in {
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDjPSt4TykAJgafU9Trk7sr9wzXhBZxawDIZir0CPyDN sako@sakopc" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDjPSt4TykAJgafU9Trk7sr9wzXhBZxawDIZir0CPyDN sako@sakopc"
]; ];
services.logrotate.enable = true;
# anything can be a server, even a laptop # anything can be a server, even a laptop
# any say against this is a lie and propaganda # any say against this is a lie and propaganda
services.logind.lidSwitch = "ignore"; services.logind.lidSwitch = "ignore";

View file

@ -28,5 +28,12 @@ in {
''; '';
}; };
services.logrotate.settings.nginx = {
enable = true;
minsize = "50M";
rotate = "2";
compress = true;
};
}; };
} }