2023-04-06 15:12:19 +00:00
|
|
|
{ pkgs, ... }: {
|
2022-12-31 12:07:15 +00:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
2023-04-06 15:12:19 +00:00
|
|
|
videoDrivers = [ "nvidia" ];
|
2022-12-31 12:07:15 +00:00
|
|
|
displayManager = {
|
2023-04-06 15:12:19 +00:00
|
|
|
defaultSession = "hyprland";
|
|
|
|
sddm = { enable = true; };
|
2022-12-31 12:07:15 +00:00
|
|
|
};
|
|
|
|
libinput.enable = true; # touchpad support
|
|
|
|
layout = "de";
|
|
|
|
xkbOptions = "ctrl:nocaps";
|
|
|
|
};
|
|
|
|
services.xserver.screenSection = ''
|
|
|
|
Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
|
|
|
|
Option "AllowIndirectGLXProtocol" "off"
|
|
|
|
Option "TripleBuffer" "on"
|
|
|
|
'';
|
|
|
|
}
|