mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: back to xorg for gaming 😞
This commit is contained in:
parent
bbcf39a3ae
commit
05b626f912
7 changed files with 226 additions and 27 deletions
|
@ -12,6 +12,7 @@ in {
|
|||
imports = [
|
||||
./fonts.nix
|
||||
./wayland.nix
|
||||
./xserver.nix
|
||||
./steam.nix
|
||||
];
|
||||
|
||||
|
|
25
modules/optional/graphical/xserver.nix
Normal file
25
modules/optional/graphical/xserver.nix
Normal 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;
|
||||
}
|
|
@ -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
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue