git.iko.soy/typeable/nixpkgs
on master help sign in
nixos: skip restarting systemd-logind to not break x11
commit23f398012b420e9e5293a21d62ed838062b8235a authorJoerg Thalheim <joerg@thalheim.io> dateWed 27 Sep 2017, 22:23 (9 years ago) parent672a402
1 file changed+6−1
nixos/modules/system/boot/systemd.nix+6−1
nixos/modules/system/boot/systemd.nix+6−1
@@ -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;