mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
18 lines
303 B
Nix
18 lines
303 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
services.logrotate = {
|
|
enable = true;
|
|
paths = {
|
|
nginx = mkIf config.services.nginx.enable {
|
|
path = "/var/log/nginx/*.log";
|
|
user = "nginx";
|
|
group = "nginx";
|
|
frequency = "weekly";
|
|
keep = 2;
|
|
};
|
|
};
|
|
};
|
|
}
|