aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/arrakis
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-10-21 00:57:12 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-10-21 00:57:12 -0700
commit9909f2cb6c0b51ebe2fa9f39e00bc94c77ed8396 (patch)
treeddfa8019e2c55d15392aab7069c6e1c0e846b71f /hosts/arrakis
parent592f267b41f5550d6713c0724c018842efe54b22 (diff)
downloadnix-9909f2cb6c0b51ebe2fa9f39e00bc94c77ed8396.tar
nix-9909f2cb6c0b51ebe2fa9f39e00bc94c77ed8396.tar.gz
nix-9909f2cb6c0b51ebe2fa9f39e00bc94c77ed8396.tar.bz2
nix-9909f2cb6c0b51ebe2fa9f39e00bc94c77ed8396.tar.lz
nix-9909f2cb6c0b51ebe2fa9f39e00bc94c77ed8396.tar.xz
nix-9909f2cb6c0b51ebe2fa9f39e00bc94c77ed8396.tar.zst
nix-9909f2cb6c0b51ebe2fa9f39e00bc94c77ed8396.zip
Add nVidia patches
Diffstat (limited to 'hosts/arrakis')
-rw-r--r--hosts/arrakis/hardware-configuration.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/hosts/arrakis/hardware-configuration.nix b/hosts/arrakis/hardware-configuration.nix
index e1b7dc0..122fde4 100644
--- a/hosts/arrakis/hardware-configuration.nix
+++ b/hosts/arrakis/hardware-configuration.nix
@@ -3,6 +3,9 @@
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
+let
+ package = config.boot.kernelPackages.nvidiaPackages.beta;
+in
{
imports =
[ #(modulesPath + "/installer/scan/not-detected.nix")
@@ -98,7 +101,7 @@
nvidia = {
modesetting.enable = true;
open = true;
- package = pkgs.nvidia-patch.patch-nvenc (pkgs.nvidia-patch.patch-fbc config.boot.kernelPackages.nvidiaPackages.beta);
+ package = pkgs.nvidia-patch.patch-nvenc (pkgs.nvidia-patch.patch-fbc package);
};
};
}