refactor(sunshine.nix): switch from XFCE to GNOME and modify display manager settings

- Replaced XFCE with GNOME as the desktop manager
- Updated `displayManager` configuration to use GDM instead of SDDM
- Added `autoSuspend = false` for GDM
- Set `defaultSession` to "gnome-xorg"
- Disabled `NetworkManager-wait-online` service using `mkForce`
This commit is contained in:
Giulio De Pasquale 2024-12-18 14:07:39 +00:00
parent 5925e20119
commit 145f84415a

View File

@ -48,7 +48,7 @@ in
nvidiaSettings = true; nvidiaSettings = true;
}; };
}; };
systemd.services.NetworkManager-wait-online.enable = pkgs.lib.mkForce false;
programs.steam = { programs.steam = {
enable = true; enable = true;
gamescopeSession.enable = true; gamescopeSession.enable = true;
@ -114,22 +114,21 @@ in
}; };
}; };
displayManager = { xserver = {
sddm = {
enable = true; enable = true;
wayland.enable = false; videoDrivers = [ "nvidia" ];
autoLogin.relogin = true; desktopManager.gnome.enable = true;
}; displayManager = {
gdm = {
enable = true;
autoSuspend = false;
autoLogin = { autoLogin = {
inherit user; inherit user;
enable = true; enable = true;
}; };
}; };
defaultSession = "gnome-xorg";
xserver = { };
enable = true;
videoDrivers = [ "nvidia" ];
desktopManager.xfce.enable = true;
monitorSection = '' monitorSection = ''
HorizSync 5.0 - 1000.0 HorizSync 5.0 - 1000.0