aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorZhongheng Liu <z.liu@outlook.com.gr>2024-08-13 12:51:43 +0800
committerZhongheng Liu <z.liu@outlook.com.gr>2024-08-13 12:51:43 +0800
commit24eb923bbbf7e5756dc116b64e26e2d468727353 (patch)
tree5f88c1f0cfd298057f3a9ede11007eac30e3d50e /nixos
parent6e33f37873bb9e3ec765e3aa1081468f00906ae5 (diff)
downloadnixos-configuration-24eb923bbbf7e5756dc116b64e26e2d468727353.tar.gz
nixos-configuration-24eb923bbbf7e5756dc116b64e26e2d468727353.tar.bz2
nixos-configuration-24eb923bbbf7e5756dc116b64e26e2d468727353.zip
feat: trying to solve hardware acceleration issue by including libvdpau-va-gl driver support
So far this has not worked in VLC media player, with reasons unknown
Diffstat (limited to 'nixos')
-rw-r--r--nixos/nvidia.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/nixos/nvidia.nix b/nixos/nvidia.nix
index 7ccac2b..1f20558 100644
--- a/nixos/nvidia.nix
+++ b/nixos/nvidia.nix
@@ -1,6 +1,7 @@
{
config,
lib,
+ pkgs,
...
}: {
specialisation = {
@@ -14,7 +15,12 @@
};
};
};
- hardware.graphics.enable = true;
+ hardware.graphics = {
+ enable = true;
+ extraPackages = with pkgs; [
+ libvdpau-va-gl
+ ];
+ };
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
prime = {
@@ -27,8 +33,6 @@
};
forceFullCompositionPipeline = true;
modesetting.enable = true;
- powerManagement.enable = false;
- powerManagement.finegrained = false;
# open = true;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.beta;