nixos/gdm: disable the gdm services as it is redundant

and causes issues

(cherry picked from commit 47f6591706dcfb699b0e0d9f09a5a10648198d40)
This commit is contained in:
Artturin 2021-08-10 01:38:54 +03:00 committed by github-actions[bot]
parent ad6e733d63
commit 2fac4b6d00

View File

@ -163,6 +163,11 @@ in
systemd.packages = with pkgs.gnome; [ gdm gnome-session gnome-shell ]; systemd.packages = with pkgs.gnome; [ gdm gnome-session gnome-shell ];
environment.systemPackages = [ pkgs.gnome.adwaita-icon-theme ]; environment.systemPackages = [ pkgs.gnome.adwaita-icon-theme ];
# We dont use the upstream gdm service
# it has to be disabled since the gdm package has it
# https://github.com/NixOS/nixpkgs/issues/108672
systemd.services.gdm.enable = false;
systemd.services.display-manager.wants = [ systemd.services.display-manager.wants = [
# Because sd_login_monitor_new requires /run/systemd/machines # Because sd_login_monitor_new requires /run/systemd/machines
"systemd-machined.service" "systemd-machined.service"