mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-30 12:20:41 +00:00
Limit journal size
This commit is contained in:
parent
0a9742429d
commit
7a17948e90
3 changed files with 46 additions and 0 deletions
9
system/shared/services/journald.nix
Normal file
9
system/shared/services/journald.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
# Limit systemd journal size, as the default is unlimited and
|
||||
# journals get big really fast
|
||||
services.journald.extraConfig = ''
|
||||
SystemMaxUse=100M
|
||||
RuntimeMaxUse=50M
|
||||
SystemMaxFileSize=50M
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue