From 4fb0752c37023856b802e77a9153db6c319c2c17 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 11:48:28 +0000 Subject: skip journal catalog, update-done and lastlog; volatile journal With an empty /var on every boot, systemd-journal-catalog-update and systemd-update-done run every time (ConditionNeedsUpdate=/var), and they're in the critical path to sysinit.target. Suppress them. Keep the journal in /run, so systemd-journal-flush has nothing to do, and drop pam_lastlog2 from login, which also gets rid of lastlog2-import.service. --- default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'default.nix') diff --git a/default.nix b/default.nix index b0af4ff..d562380 100644 --- a/default.nix +++ b/default.nix @@ -79,6 +79,15 @@ let systemd.oomd.enable = false; systemd.tpm2.enable = false; users.manageLingering = false; + + # /var is empty on every boot, which makes these run every time, + # in the critical path to sysinit.target. + systemd.suppressedSystemUnits = [ + "systemd-journal-catalog-update.service" + "systemd-update-done.service" + ]; + services.journald.storage = "volatile"; # don't flush to /var/log + security.pam.services.login.lastlog.enable = lib.mkForce false; }; }; -- cgit v1.3.1