common-config.journald: only store in-memory, max 100MB, maximum 1d

Clears all logs on reboot, clears data after 100MB or after 1day,
whatever comes first.
This commit is contained in:
eyjhb 2024-12-18 15:20:56 +01:00
parent d1cb03f213
commit 629f8f02d7
No known key found for this signature in database
GPG key ID: 609F508E3239F920

View file

@ -6,7 +6,13 @@
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;
}; };
journald.extraConfig = "SystemMaxUse=100M"; journald = {
storage = "volatile";
extraConfig = ''
SystemMaxUse=100M
MaxRetentionSec=1d
'';
};
}; };
nix = { nix = {