mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 20:25:38 +00:00
setup journald retention and rotation
This commit is contained in:
parent
04e8b8834e
commit
c1e89fb20e
@ -1,6 +1,6 @@
|
|||||||
{ config, pkgs, lib, ... }: {
|
{ config, pkgs, lib, ... }: {
|
||||||
|
|
||||||
imports = [ ./user.nix ./timezone.nix ./doas.nix ];
|
imports = [ ./doas.nix ./journald.nix ./user.nix ./timezone.nix ];
|
||||||
|
|
||||||
config = lib.mkIf pkgs.stdenv.isLinux {
|
config = lib.mkIf pkgs.stdenv.isLinux {
|
||||||
|
|
||||||
|
10
modules/nixos/system/journald.nix
Normal file
10
modules/nixos/system/journald.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ ... }: {
|
||||||
|
|
||||||
|
# How long to keep journalctl entries
|
||||||
|
services.journald.extraConfig = ''
|
||||||
|
SystemMaxUse=100M
|
||||||
|
MaxFileSec=1month
|
||||||
|
MaxRetentionSec=2month
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user