mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Using ./home.nix and ./nixos.nix as entrypoints for hosts. Using hardware profiles. Using new entrypoints (profiles/base/profiles.nix + profiles/base/home.nix). New modules (for DNS handling, for themeing, ...). Split up deploy-tf.nix into several modules. Renamed common profile to base profile.
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;
|
|
};
|
|
};
|
|
};
|
|
}
|