feat: back to xorg for gaming 😞

This commit is contained in:
oddlama 2023-09-13 17:28:23 +02:00
parent bbcf39a3ae
commit 05b626f912
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
7 changed files with 226 additions and 27 deletions

View file

@ -12,6 +12,7 @@ in {
imports = [
./fonts.nix
./wayland.nix
./xserver.nix
./steam.nix
];

View file

@ -0,0 +1,25 @@
{
services.xserver = {
enable = true;
dpi = 96;
displayManager.startx.enable = true;
desktopManager.xterm.enable = false;
autoRepeatDelay = 235;
autoRepeatInterval = 60;
videoDrivers = ["modesetting"];
libinput = {
enable = true;
mouse.accelProfile = "flat";
mouse.accelSpeed = "0";
# touchpad = {
# accelProfile = "flat";
# accelSpeed = "0.5";
# naturalScrolling = true;
# disableWhileTyping = true;
# };
};
layout = "de";
xkbVariant = "nodeadkeys";
};
services.autorandr.enable = true;
}

View file

@ -1,12 +1,17 @@
{pkgs, ...}: {
{
lib,
pkgs,
...
}: {
boot.blacklistedKernelModules = ["nouveau"];
services.xserver.videoDrivers = lib.mkForce ["nvidia"];
hardware = {
nvidia = {
modesetting.enable = true;
nvidiaPersistenced = true;
nvidiaSettings = true;
open = false;
open = true;
powerManagement.enable = true;
};
opengl = {
@ -14,6 +19,7 @@
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [
vaapiVdpau
nvidia-vaapi-driver
];
};