From bd4c49f29b77e9d494bf013daf7e31c17ccc92bf Mon Sep 17 00:00:00 2001 From: nikstur Date: Wed, 28 Feb 2024 11:45:38 +0100 Subject: [PATCH 1/2] nixos/systemd: remove a superfluous override This is already the upstream default. --- nixos/modules/system/boot/systemd.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index e29fa49ea23b..1ef323ba14db 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -667,7 +667,6 @@ in # Don't bother with certain units in containers. systemd.services.systemd-remount-fs.unitConfig.ConditionVirtualization = "!container"; - systemd.services.systemd-random-seed.unitConfig.ConditionVirtualization = "!container"; # Increase numeric PID range (set directly instead of copying a one-line file from systemd) # https://github.com/systemd/systemd/pull/12226 From 380f36f3500d6a869baeaf86e9e96ffee44a55e2 Mon Sep 17 00:00:00 2001 From: nikstur Date: Wed, 28 Feb 2024 12:14:04 +0100 Subject: [PATCH 2/2] nixos/systemd: include systemd-boot-random-seed.service This is necessary to properly refresh the boot loader random seed. See https://www.freedesktop.org/software/systemd/man/latest/systemd-boot-random-seed.service.html# --- nixos/modules/system/boot/systemd.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 1ef323ba14db..49090423e078 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -97,6 +97,7 @@ let # Maintaining state across reboots. "systemd-random-seed.service" + "systemd-boot-random-seed.service" "systemd-backlight@.service" "systemd-rfkill.service" "systemd-rfkill.socket"