From 0802b5a3d13eac9e1140ff5a5d0981ab4dae73bd Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sun, 20 Sep 2026 22:42:03 +0800 Subject: [PATCH] feat(kubevirt): cap host journald at 10G --- lib/genKubeVirtHostModule.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/genKubeVirtHostModule.nix b/lib/genKubeVirtHostModule.nix index 54623c28..95442b4c 100644 --- a/lib/genKubeVirtHostModule.nix +++ b/lib/genKubeVirtHostModule.nix @@ -138,6 +138,14 @@ in }; }; + # systemd-journal - cap disk usage, but keep plenty of history on the big + # persistent disk (/var/log is preserved to /persistent). + # https://www.freedesktop.org/software/systemd/man/latest/journald.conf.html + services.journald.settings.Journal = { + SystemMaxUse = "10G"; + RuntimeMaxUse = "256M"; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave