aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vps-configuration.env.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/vps-configuration.env.nix b/vps-configuration.env.nix
index 817859d..6411720 100644
--- a/vps-configuration.env.nix
+++ b/vps-configuration.env.nix
@@ -309,6 +309,22 @@ in {
'';
};
};
+
+ logrotate = {
+ enable =
+ false; # disabled due to extraConfig not being yet out of unstable
+ extraConfig = ''
+ compress
+
+ ${envsubstConfiguration.ciLogsRoot}/*/*.log {
+ rotate 5
+ daily
+ olddir ${envsubstConfiguration.staticRoot}/logrorate/
+ createolddir 744 andreh users
+ su andreh users
+ }
+ '';
+ };
};
systemd.services = {