git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #100569 from andersk/gdm-plymouth

nixos/gdm: Conflict plymouth-quit, but more carefully

commit4287f5adfa8cc4be5031d1dcef1ac0cde47a7ae5 authorWORLDofPEACE <worldofpeace@protonmail.ch> dateSun 21 Feb 2021, 11:03 (6 years ago) parentaed173fda5401e
1 file changed+9−3
nixos/modules/services/x11/display-managers/gdm.nix+9−3
nixos/modules/services/x11/display-managers/gdm.nix+9−3
@@ -183,14 +183,20 @@ in
183183 "systemd-udev-settle.service"
184184 ];
185185 systemd.services.display-manager.conflicts = [
186− "getty@tty${gdm.initialVT}.service"
187− # TODO: Add "plymouth-quit.service" so GDM can control when plymouth quits.
188− # Currently this breaks switching configurations while using plymouth.
186+ "getty@tty${gdm.initialVT}.service"
187+ "plymouth-quit.service"
189188 ];
190189 systemd.services.display-manager.onFailure = [
191190 "plymouth-quit.service"
192191 ];
193192
193+ # Prevent nixos-rebuild switch from bringing down the graphical
194+ # session. (If multi-user.target wants plymouth-quit.service which
195+ # conflicts display-manager.service, then when nixos-rebuild
196+ # switch starts multi-user.target, display-manager.service is
197+ # stopped so plymouth-quit.service can be started.)
198+ systemd.services.plymouth-quit.wantedBy = lib.mkForce [];
199+
194200 systemd.services.display-manager.serviceConfig = {
195201 # Restart = "always"; - already defined in xserver.nix
196202 KillMode = "mixed";