diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-10-23 00:30:49 -0700 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-10-23 00:30:49 -0700 |
commit | da29250fef605b5e5eca0db672e7763c0e6b0e32 (patch) | |
tree | e16c956fd3772a1157d4cbbe90c3b7e168f3ad78 /hosts/arrakis/hardware-configuration.nix | |
parent | 9cb590de3638de9e018a04305d704eea74ea6e30 (diff) | |
download | nix-da29250fef605b5e5eca0db672e7763c0e6b0e32.tar nix-da29250fef605b5e5eca0db672e7763c0e6b0e32.tar.gz nix-da29250fef605b5e5eca0db672e7763c0e6b0e32.tar.bz2 nix-da29250fef605b5e5eca0db672e7763c0e6b0e32.tar.lz nix-da29250fef605b5e5eca0db672e7763c0e6b0e32.tar.xz nix-da29250fef605b5e5eca0db672e7763c0e6b0e32.tar.zst nix-da29250fef605b5e5eca0db672e7763c0e6b0e32.zip |
Add nVidia patches
Diffstat (limited to '')
-rw-r--r-- | hosts/arrakis/hardware-configuration.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hosts/arrakis/hardware-configuration.nix b/hosts/arrakis/hardware-configuration.nix index ed9b51e..7d5c4bf 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, nvidia-patch, 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); }; }; } |