Merge pull request #100569 from andersk/gdm-plymouth
nixos/gdm: Conflict plymouth-quit, but more carefully
This commit is contained in:
commit
4287f5adfa
|
@ -183,14 +183,20 @@ in
|
||||||
"systemd-udev-settle.service"
|
"systemd-udev-settle.service"
|
||||||
];
|
];
|
||||||
systemd.services.display-manager.conflicts = [
|
systemd.services.display-manager.conflicts = [
|
||||||
"getty@tty${gdm.initialVT}.service"
|
"getty@tty${gdm.initialVT}.service"
|
||||||
# TODO: Add "plymouth-quit.service" so GDM can control when plymouth quits.
|
"plymouth-quit.service"
|
||||||
# Currently this breaks switching configurations while using plymouth.
|
|
||||||
];
|
];
|
||||||
systemd.services.display-manager.onFailure = [
|
systemd.services.display-manager.onFailure = [
|
||||||
"plymouth-quit.service"
|
"plymouth-quit.service"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Prevent nixos-rebuild switch from bringing down the graphical
|
||||||
|
# session. (If multi-user.target wants plymouth-quit.service which
|
||||||
|
# conflicts display-manager.service, then when nixos-rebuild
|
||||||
|
# switch starts multi-user.target, display-manager.service is
|
||||||
|
# stopped so plymouth-quit.service can be started.)
|
||||||
|
systemd.services.plymouth-quit.wantedBy = lib.mkForce [];
|
||||||
|
|
||||||
systemd.services.display-manager.serviceConfig = {
|
systemd.services.display-manager.serviceConfig = {
|
||||||
# Restart = "always"; - already defined in xserver.nix
|
# Restart = "always"; - already defined in xserver.nix
|
||||||
KillMode = "mixed";
|
KillMode = "mixed";
|
||||||
|
|
Loading…
Reference in New Issue