chore: remove unused gpu-nvidia & gpu-optimus configs

This commit is contained in:
Felix Schröter 2022-02-08 00:11:35 +01:00
parent b2052c8f8e
commit 1aae429e50
Signed by: felschr
GPG key ID: 671E39E6744C807D
2 changed files with 0 additions and 35 deletions

View file

@ -1,26 +0,0 @@
{ config, pkgs, ... }:
{
# Graphics drivers
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.modesetting.enable = true;
services.xserver.screenSection = ''
Option "metamodes" "1920x1080_120 +0+0 {AllowGSYNC=On, AllowGSYNCCompatible=On, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
'';
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [ libvdpau-va-gl vaapiVdpau ];
extraPackages32 = with pkgs.pkgsi686Linux; [ libvdpau-va-gl vaapiVdpau ];
};
# NVIDIA GBM setup
environment.variables = {
GBM_BACKENDS_PATH = "/run/opengl-driver/lib/gbm";
GBM_BACKEND = "nvidia-drm";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
OCL_ICD_VENDORS = "/run/opengl-driver/etc/OpenCL/vendors";
};
}

View file

@ -1,9 +0,0 @@
{ config, pkgs, ... }:
{
# Graphics drivers
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.optimus_prime.enable = true;
hardware.nvidia.optimus_prime.nvidiaBusId = "PCI:2:0:0";
hardware.nvidia.optimus_prime.intelBusId = "PCI:0:2:0";
}