aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/arrakis/hardware-configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hosts/arrakis/hardware-configuration.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/hosts/arrakis/hardware-configuration.nix b/hosts/arrakis/hardware-configuration.nix
index 06bd803..532a673 100644
--- a/hosts/arrakis/hardware-configuration.nix
+++ b/hosts/arrakis/hardware-configuration.nix
@@ -57,11 +57,12 @@
extraPackages32 = with pkgs.pkgsi686Linux; [ nvidia-vaapi-driver ];
};
- nvidia = {
+ nvidia = let
+ video = config.boot.kernelPackages.nvidiaPackages.beta;
+ in {
modesetting.enable = true;
open = true;
- #package = pkgs.nvidia-patch.patch-nvenc (pkgs.nvidia-patch.patch-fbc config.boot.kernelPackages.nvidiaPackages.beta);
- package = config.boot.kernelPackages.nvidiaPackages.beta;
+ package = if builtins.hasAttr video.version pkgs.nvidia-patch-list.fbc then pkgs.nvidia-patch.patch-nvenc (pkgs.nvidia-patch.patch-fbc config.boot.kernelPackages.nvidiaPackages.beta) else video;
};
printers = let