about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2022-09-13 11:26:07 +0200
committerGitHub <noreply@github.com>2022-09-13 11:26:07 +0200
commita81b6401f6b5503d26918f062d010619f4059032 (patch)
tree1b5cb80d6987cf52b08e3a926a7c82509f9ab4f1 /nixos
parent398cb29dc007166597ea586d1c57670e144c06ac (diff)
parent19686a44521f06a065fad86d9040c3f4864cf20c (diff)
downloadnixlib-a81b6401f6b5503d26918f062d010619f4059032.tar
nixlib-a81b6401f6b5503d26918f062d010619f4059032.tar.gz
nixlib-a81b6401f6b5503d26918f062d010619f4059032.tar.bz2
nixlib-a81b6401f6b5503d26918f062d010619f4059032.tar.lz
nixlib-a81b6401f6b5503d26918f062d010619f4059032.tar.xz
nixlib-a81b6401f6b5503d26918f062d010619f4059032.tar.zst
nixlib-a81b6401f6b5503d26918f062d010619f4059032.zip
Merge pull request #191032 from yu-re-ka/systemd-nixos-utmp
nixos/systemd: conditionally include systemd-update-utmp upstream unit 
Diffstat (limited to 'nixos')
-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 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"