Optimize mysql logrotate

This commit is contained in:
Daniel Siepmann 2024-06-14 19:06:27 +02:00
parent 4fbf1a0f6c
commit 988182e974
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 2 additions and 2 deletions

View file

@ -106,7 +106,7 @@
users.users.daniels = {
isNormalUser = true;
description = "Daniel Siepmann";
extraGroups = [ "networkmanager" "wheel" ];
extraGroups = [ "networkmanager" "wheel" "mysql" ];
packages = with pkgs; [
i3lock
xsel

View file

@ -130,7 +130,7 @@ in {
files = mysqlLogFile;
su = "${config.services.mysql.user} ${config.services.mysql.user}";
frequency = "daily";
rotate = 28;
rotate = 2;
sharedscripts = true;
compress = true;
delaycompress = true;