Skip to content

Commit 23f3980

Browse files
committedSep 27, 2017
nixos: skip restarting systemd-logind to not break x11
1 parent 672a402 commit 23f3980

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎nixos/modules/system/boot/systemd.nix

+6-1
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,12 @@ in
875875
systemd.services.systemd-remount-fs.restartIfChanged = false;
876876
systemd.services.systemd-update-utmp.restartIfChanged = false;
877877
systemd.services.systemd-user-sessions.restartIfChanged = false; # Restart kills all active sessions.
878-
systemd.services.systemd-logind.restartTriggers = [ config.environment.etc."systemd/logind.conf".source ];
878+
# Restarting systemd-logind breaks X11
879+
# - upstream commit: https://cgit.freedesktop.org/xorg/xserver/commit/?id=dc48bd653c7e101
880+
# - systemd announcement: https://github.com/systemd/systemd/blob/22043e4317ecd2bc7834b48a6d364de76bb26d91/NEWS#L103-L112
881+
# - this might be addressed in the future by xorg
882+
#systemd.services.systemd-logind.restartTriggers = [ config.environment.etc."systemd/logind.conf".source ];
883+
systemd.services.systemd-logind.restartIfChanged = false;
879884
systemd.services.systemd-logind.stopIfChanged = false;
880885
systemd.services.systemd-journald.restartTriggers = [ config.environment.etc."systemd/journald.conf".source ];
881886
systemd.services.systemd-journald.stopIfChanged = false;

0 commit comments

Comments
 (0)