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.
This commit is contained in:
parent
d8fb224f4c
commit
0aed32b9dd
2 changed files with 3 additions and 3 deletions
|
@ -97,7 +97,7 @@ let
|
||||||
|
|
||||||
# Maintaining state across reboots.
|
# Maintaining state across reboots.
|
||||||
"systemd-random-seed.service"
|
"systemd-random-seed.service"
|
||||||
"systemd-boot-random-seed.service"
|
] ++ (optional cfg.package.withBootloader "systemd-boot-random-seed.service") ++ [
|
||||||
"systemd-backlight@.service"
|
"systemd-backlight@.service"
|
||||||
"systemd-rfkill.service"
|
"systemd-rfkill.service"
|
||||||
"systemd-rfkill.socket"
|
"systemd-rfkill.socket"
|
||||||
|
|
|
@ -851,8 +851,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
# needed - and therefore `interfaceVersion` should be incremented.
|
# needed - and therefore `interfaceVersion` should be incremented.
|
||||||
interfaceVersion = 2;
|
interfaceVersion = 2;
|
||||||
|
|
||||||
inherit withCryptsetup withHostnamed withImportd withKmod withLocaled
|
inherit withBootloader withCryptsetup withHostnamed withImportd withKmod
|
||||||
withMachined withPortabled withTimedated withUtmp util-linux kmod kbd;
|
withLocaled withMachined withPortabled withTimedated withUtmp util-linux kmod kbd;
|
||||||
|
|
||||||
tests = {
|
tests = {
|
||||||
inherit (nixosTests)
|
inherit (nixosTests)
|
||||||
|
|
Loading…
Reference in a new issue