diff --git a/modules/server/default.nix b/modules/server/default.nix index ed5dcd55..6a4c0d49 100644 --- a/modules/server/default.nix +++ b/modules/server/default.nix @@ -31,6 +31,8 @@ in { "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDjPSt4TykAJgafU9Trk7sr9wzXhBZxawDIZir0CPyDN sako@sakopc" ]; + services.logrotate.enable = true; + # anything can be a server, even a laptop # any say against this is a lie and propaganda services.logind.lidSwitch = "ignore"; diff --git a/modules/server/nginx.nix b/modules/server/nginx.nix index 5e44d80e..202a6739 100644 --- a/modules/server/nginx.nix +++ b/modules/server/nginx.nix @@ -28,5 +28,12 @@ in { ''; }; + services.logrotate.settings.nginx = { + enable = true; + minsize = "50M"; + rotate = "2"; + compress = true; + }; + }; }