summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd.nix
diff options
context:
space:
mode:
authorYureka <yuka@yuka.dev>2022-09-13 10:34:28 +0200
committerYureka <yuka@yuka.dev>2022-09-13 10:34:28 +0200
commit19686a44521f06a065fad86d9040c3f4864cf20c (patch)
tree1714070e7ff9a5e6f96db912ceeefadc2e1d5391 /nixos/modules/system/boot/systemd.nix
parent48178658878ab2de38d7f92172a6b8047b2bd112 (diff)
downloadnixpkgs-19686a44521f06a065fad86d9040c3f4864cf20c.tar
nixpkgs-19686a44521f06a065fad86d9040c3f4864cf20c.tar.gz
nixpkgs-19686a44521f06a065fad86d9040c3f4864cf20c.tar.bz2
nixpkgs-19686a44521f06a065fad86d9040c3f4864cf20c.tar.lz
nixpkgs-19686a44521f06a065fad86d9040c3f4864cf20c.tar.xz
nixpkgs-19686a44521f06a065fad86d9040c3f4864cf20c.tar.zst
nixpkgs-19686a44521f06a065fad86d9040c3f4864cf20c.zip
nixos/systemd: conditionally include systemd-update-utmp upstream unit
Diffstat (limited to 'nixos/modules/system/boot/systemd.nix')
-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 35280ee0736..bcdc88ff63d 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"