about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorViktor Kleen <viktor@kleen.org>2024-03-06 10:08:48 +0000
committerViktor Kleen <viktor@kleen.org>2024-03-08 08:52:11 +0000
commit0aed32b9dd2a4118336c31742fed0262bd381d0b (patch)
tree3f5ef9242c6898dea07d1be6c3fabecda5c17844 /nixos/modules/system
parentd8fb224f4cc3b79109f51a7160d40bbfa0813ce5 (diff)
nixos/systemd: Only include systemd-boot-random-seed if the unit exists
The unit file is only present if systemd was built with bootloader support.
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/systemd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix
index 49090423e078c..a8885aee78f2b 100644
--- a/nixos/modules/system/boot/systemd.nix
+++ b/nixos/modules/system/boot/systemd.nix
@@ -97,7 +97,7 @@ let
 
       # Maintaining state across reboots.
       "systemd-random-seed.service"
-      "systemd-boot-random-seed.service"
+      ] ++ (optional cfg.package.withBootloader "systemd-boot-random-seed.service") ++ [
       "systemd-backlight@.service"
       "systemd-rfkill.service"
       "systemd-rfkill.socket"