Former-commit-id: aae1271cf0
This commit is contained in:
Hadi
2024-06-14 10:00:54 +02:00
parent 379424e228
commit d28ad77974
117 changed files with 617 additions and 1462 deletions

21
hosts/shared/nvidia.nix Normal file
View File

@@ -0,0 +1,21 @@
{ config, pkgs, ... }: {
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [ vaapiVdpau libvdpau-va-gl ];
};
services.xserver.videoDrivers = [ "nvidia" ];
boot.kernelParams = [ "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
powerManagement.finegrained = false;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
}