mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
update
This commit is contained in:
parent
2b7b63a18c
commit
638ef7093e
140 changed files with 307 additions and 121 deletions
15
hosts/desktop/nvidia.nix
Normal file
15
hosts/desktop/nvidia.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
_: {
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
hardware.nvidia = {
|
||||
open = true;
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = true;
|
||||
nvidiaSettings = true;
|
||||
};
|
||||
|
||||
# Avoid nvidia driver from crashing the system
|
||||
boot.kernelParams = ["pcie_aspm=off"];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue