chore: remove unused gpu-nvidia & gpu-optimus configs
This commit is contained in:
parent
b2052c8f8e
commit
1aae429e50
|
@ -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";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -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";
|
|
||||||
}
|
|
Loading…
Reference in a new issue