This commit is contained in:
2023-06-24 14:48:53 +02:00
parent 54ba2cfd56
commit 39ced22002
6 changed files with 19 additions and 4 deletions

View File

@@ -15,9 +15,18 @@
];
hardware.opengl.enable = true;
#hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
hardware.opengl.driSupport = true;
hardware.opengl.extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
];
hardware.nvidia.modesetting.enable = true; # needed for most wayland compositors
hardware.nvidia.nvidiaSettings = true;
#hardware.nvidia.open = true; # open source version of kernel module, only on driver 515.43.04+
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest;
#hardware.nvidia.modesetting.enable = true;
#hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
#hardware.nvidia.powerManagement.enable = true; # Fix graphical corruption on suspend/resume
# add this to the host in question:
#hardware.nvidia.prime = {
@@ -27,6 +36,7 @@
# nvidiaBusId = "PCI:1:0:0";
#};
environment.systemPackages = with pkgs; ([
nvtop-nvidia

View File

@@ -12,6 +12,7 @@
nixpkgs.config.libmfxSupport = true; # intel
hardware.opengl.enable = true;
hardware.opengl.driSupport = true;
hardware.opengl.extraPackages = with pkgs; [
mesa.drivers
vaapiIntel

View File

@@ -9,6 +9,9 @@
nixpkgs.config.openglSupport = true; # why is this not set by hardware.opengl.enable ?
nixpkgs.config.rocmSupport = true;
nixpkgs.config.openglSupport = true;
nixpkgs.config.vdpauSupport = true;
nixpkgs.config.vaapiSupport = true;
hardware.opengl.enable = true;