nixos-conf/shared/hardware/nvidia.nix

24 lines
612 B
Nix
Raw Normal View History

2025-04-29 16:45:17 +03:00
{ pkgs, ... }:
{
hardware = {
nvidia = {
open = true; # Set to false to use the proprietary kernel module
forceFullCompositionPipeline = true;
};
graphics = {
enable = true;
extraPackages = with pkgs; [ nvidia-vaapi-driver ];
};
};
services.xserver.videoDrivers = [ "nvidia" ];
2025-05-10 00:08:47 +03:00
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
2025-06-08 10:28:06 +03:00
nixpkgs.config.cudaSupport = true;
nix.settings = {
substituters = [ "https://nix-community.cachix.org" ];
trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ];
};
2025-04-29 16:45:17 +03:00
}