Add base nvidia conf for gaming

This commit is contained in:
Vili Sinervä 2025-04-29 16:45:17 +03:00
parent 372aab99f7
commit f103652630
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
2 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,16 @@
{ 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" ];
}

View file

@ -2,7 +2,10 @@
{
networking.hostName = "gaming";
imports = [ ../base.nix ];
imports = [
../base.nix
../hardware-specific/nvidia.nix
];
services.qemuGuest.enable = true;
}