diff --git a/hardware-specific/nvidia.nix b/hardware-specific/nvidia.nix new file mode 100644 index 0000000..71369fb --- /dev/null +++ b/hardware-specific/nvidia.nix @@ -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" ]; +} diff --git a/machine-confs/gaming.nix b/machine-confs/gaming.nix index 4124b97..be87e80 100644 --- a/machine-confs/gaming.nix +++ b/machine-confs/gaming.nix @@ -2,7 +2,10 @@ { networking.hostName = "gaming"; - imports = [ ../base.nix ]; + imports = [ + ../base.nix + ../hardware-specific/nvidia.nix + ]; services.qemuGuest.enable = true; }