Former-commit-id: 3498cf42bf
This commit is contained in:
Hadi
2024-03-13 19:42:50 +01:00
parent 74473f7bf8
commit e2ccbac0f2
7 changed files with 74 additions and 67 deletions

17
nixos/nvidia.nix Normal file
View File

@@ -0,0 +1,17 @@
{ pkgs, config, ... }: {
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
powerManagement.finegrained = false;
open = false;
nvidiaSettings = true;
};
}