summaryrefslogtreecommitdiff
path: root/modules/nixos/personal/system.nix
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2026-10-04 21:09:26 +0200
committerquentin@aristote.fr <quentin@aristote.fr>2026-10-04 21:09:26 +0200
commit2128c3819ec3313b2e2554200136dfcc58e963d0 (patch)
tree84716fc99cc41a5023ee86bab2d4cd7470bf7a33 /modules/nixos/personal/system.nix
parent1b39efef3cfa1c3fbf8f073bd504825b0b930c1b (diff)
downloadmy-nixpkgs-2128c3819ec3313b2e2554200136dfcc58e963d0.tar.gz
my-nixpkgs-2128c3819ec3313b2e2554200136dfcc58e963d0.tar.bz2
my-nixpkgs-2128c3819ec3313b2e2554200136dfcc58e963d0.tar.xz
nixos: keep journald logs small
Diffstat (limited to 'modules/nixos/personal/system.nix')
-rw-r--r--modules/nixos/personal/system.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/nixos/personal/system.nix b/modules/nixos/personal/system.nix
index 959f419..49ba6c8 100644
--- a/modules/nixos/personal/system.nix
+++ b/modules/nixos/personal/system.nix
@@ -124,6 +124,15 @@ in
};
})
+ (lib.mkIf (cfgRemote.enable && cfgLuks ? crypt) {
+ # if a remote builder is needed, the machine is slow
+ # encrypting journal logs can take up a lot of resources,
+ # hence they are kept small
+ services.journald.extraConfig = ''
+ SystemMaxUse=100M
+ '';
+ })
+
(lib.mkIf cfg.autoUpgrade.enable {
personal.boot.unattendedReboot = lib.mkIf reboot true;
system.autoUpgrade = {