aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/arrakis/hardware-configuration.nix
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-10-21 09:00:44 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-10-21 09:00:44 -0700
commit37cfe1d6abd3d76fcec15b736b737ca859ff08a3 (patch)
treef858c5bae685af64f8ea05bca5ff076b48733c72 /hosts/arrakis/hardware-configuration.nix
parent6d0423c4914cf409184d78d34f59aafa0d702bdb (diff)
downloadnix-37cfe1d6abd3d76fcec15b736b737ca859ff08a3.tar
nix-37cfe1d6abd3d76fcec15b736b737ca859ff08a3.tar.gz
nix-37cfe1d6abd3d76fcec15b736b737ca859ff08a3.tar.bz2
nix-37cfe1d6abd3d76fcec15b736b737ca859ff08a3.tar.lz
nix-37cfe1d6abd3d76fcec15b736b737ca859ff08a3.tar.xz
nix-37cfe1d6abd3d76fcec15b736b737ca859ff08a3.tar.zst
nix-37cfe1d6abd3d76fcec15b736b737ca859ff08a3.zip
Add nVidia patches
Diffstat (limited to '')
-rw-r--r--hosts/arrakis/hardware-configuration.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/hosts/arrakis/hardware-configuration.nix b/hosts/arrakis/hardware-configuration.nix
index ed9b51e..bbf171f 100644
--- a/hosts/arrakis/hardware-configuration.nix
+++ b/hosts/arrakis/hardware-configuration.nix
@@ -1,8 +1,11 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
-{ config, lib, pkgs, modulesPath, ... }:
+{ config, inputs, lib, pkgs, modulesPath, ... }:
+let
+ package = config.boot.kernelPackages.nvidiaPackages.beta;
+in
{
imports =
[ #(modulesPath + "/installer/scan/not-detected.nix")
@@ -88,6 +91,8 @@
{ device = "/dev/disk/by-label/swap2"; }
];
+ nixpkgs.overlays = [ inputs.nvidia-patch.overlays.default ];
+
hardware = {
bluetooth.enable = true;
graphics = {
@@ -98,7 +103,7 @@
nvidia = {
modesetting.enable = true;
open = true;
- package = config.boot.kernelPackages.nvidiaPackages.beta;
+ package = pkgs.nvidia-patch.patch-nvenc (pkgs.nvidia-patch.patch-fbc package);
};
};
}