some nvidia changes

aggregated from the wiki and nixos-hardware
This commit is contained in:
nora 2024-04-13 14:56:12 +02:00
parent 85ca679351
commit 26ea68e1a0

View file

@ -134,10 +134,18 @@ in
# scrollButton = 2;
#};
};
# https://github.com/NixOS/nixpkgs/issues/299944#issuecomment-2027246826
hardware.nvidia.modesetting.enable = true;
hardware.nvidia = {
# https://github.com/NixOS/nixpkgs/issues/299944#issuecomment-2027246826
modesetting.enable = true;
};
hardware.opengl.enable = true;
hardware.opengl = {
enable = true;
driSupport = true;
extraPackages = with pkgs; [
vaapiVdpau
];
};
# TODO: Create a fancontrol config
hardware.fancontrol.enable = false;