aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
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;