diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 35280ee07366..bcdc88ff63df 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -121,7 +121,7 @@ let "final.target" "kexec.target" "systemd-kexec.service" - "systemd-update-utmp.service" + ] ++ lib.optional (cfg.package.withUtmp or true) "systemd-update-utmp.service" ++ [ # Password entry. "systemd-ask-password-console.path"