{ # Enable the X11 windowing system. services.xserver = { enable = true; videoDrivers = ["nvidia"]; displayManager = { sddm.enable = true; defaultSession = "plasma"; }; desktopManager = { plasma5.enable = true; # xfce.enable = true; }; }; # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; }