nix/modules/system/nvidia.nix
cartierf89 b5dfc7998d nix os
2025-08-19 11:52:43 -04:00

26 lines
545 B
Nix
Executable File

{ config, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
hardware.graphics = {
enable = true;
enable32Bit = true; # steam/wine
};
services.xserver.videoDrivers = [ "nvidia" ];
boot.blacklistedKernelModules = [ "nouveau" ];
hardware.nvidia = {
modesetting.enable = true;
nvidiaSettings = true;
open = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
powerManagement.enable = false;
powerManagement.finegrained = false;
};
boot.kernelParams = [ "nvidia_drm.modeset=1" ];
}