aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-10-15 15:27:35 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-10-15 15:27:35 -0700
commitae4cf6dd3136e6b8bdcf090005126e3848c599f5 (patch)
treebfad217d32c6357d258a1b89d21219962af7ad50
parentd6d0e89219d493cc43c628438e99dc85788aa108 (diff)
downloadnix-ae4cf6dd3136e6b8bdcf090005126e3848c599f5.tar
nix-ae4cf6dd3136e6b8bdcf090005126e3848c599f5.tar.gz
nix-ae4cf6dd3136e6b8bdcf090005126e3848c599f5.tar.bz2
nix-ae4cf6dd3136e6b8bdcf090005126e3848c599f5.tar.lz
nix-ae4cf6dd3136e6b8bdcf090005126e3848c599f5.tar.xz
nix-ae4cf6dd3136e6b8bdcf090005126e3848c599f5.tar.zst
nix-ae4cf6dd3136e6b8bdcf090005126e3848c599f5.zip
Add nVidia concurrent encoding limit patches
Diffstat (limited to '')
-rw-r--r--flake.nix3
-rw-r--r--hosts/arrakis/hardware-configuration.nix6
2 files changed, 7 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 28781de..c394a85 100644
--- a/flake.nix
+++ b/flake.nix
@@ -22,6 +22,9 @@
nixpkgs-stable.url = "github:nixos/nixpkgs/release-23.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
+ nvidia-patch.url = "github:icewind1991/nvidia-patch-nixos";
+ nvidia-patch.inputs.nixpkgs.follows = "nixpkgs-unstable";
+
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs-unstable";
diff --git a/hosts/arrakis/hardware-configuration.nix b/hosts/arrakis/hardware-configuration.nix
index 4e67e65..c120bd2 100644
--- a/hosts/arrakis/hardware-configuration.nix
+++ b/hosts/arrakis/hardware-configuration.nix
@@ -55,10 +55,12 @@
hardware = {
bluetooth.enable = true;
- nvidia = {
+ nvidia = let package = config.boot.kernelPackages.nvidiaPackages.beta; in {
modesetting.enable = true;
open = true;
- package = config.boot.kernelPackages.nvidiaPackages.beta;
+ package = pkgs.nvidia-patch.patch-nvenc (pkgs.nvidia-patch.patch-fbc package);
};
};
+
+ nixpkgs.overlays = [inputs.nvidia-patch.overlays.default];
}