nixos/gdm: fix plymouth-quit bootup error message
If plymouth is not enabled, there is no plymouth-quit service created otherwise, so setting systemd.services.plymouth-quit.wantedBy creates an empty service which logs an error during bootup. The plymouth fix should only be applied if plymouth is actually available to prevent a needless systemd service error on systems with gdm but no plymouth (such as a default gnome setup).
This commit is contained in:
parent
b763c20eda
commit
36ca205e44
@ -207,7 +207,9 @@ in
|
||||
# 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.plymouth-quit = mkIf config.boot.plymouth.enable {
|
||||
wantedBy = lib.mkForce [];
|
||||
};
|
||||
|
||||
systemd.services.display-manager.serviceConfig = {
|
||||
# Restart = "always"; - already defined in xserver.nix
|
||||
|
Loading…
Reference in New Issue
Block a user