Add base nvidia conf for gaming
This commit is contained in:
parent
372aab99f7
commit
f103652630
2 changed files with 20 additions and 1 deletions
16
hardware-specific/nvidia.nix
Normal file
16
hardware-specific/nvidia.nix
Normal 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" ];
|
||||
}
|
|
@ -2,7 +2,10 @@
|
|||
{
|
||||
networking.hostName = "gaming";
|
||||
|
||||
imports = [ ../base.nix ];
|
||||
imports = [
|
||||
../base.nix
|
||||
../hardware-specific/nvidia.nix
|
||||
];
|
||||
|
||||
services.qemuGuest.enable = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue