diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-10-21 00:44:19 -0700 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-10-21 00:44:19 -0700 |
commit | 0d283994da8171621f22a171af823e066e64e904 (patch) | |
tree | 0ad5b001070bf9c03c7fe882e00da16bbe061518 | |
parent | 26cc396a71603aa2332ae6f8db118c993613a726 (diff) | |
download | nix-0d283994da8171621f22a171af823e066e64e904.tar nix-0d283994da8171621f22a171af823e066e64e904.tar.gz nix-0d283994da8171621f22a171af823e066e64e904.tar.bz2 nix-0d283994da8171621f22a171af823e066e64e904.tar.lz nix-0d283994da8171621f22a171af823e066e64e904.tar.xz nix-0d283994da8171621f22a171af823e066e64e904.tar.zst nix-0d283994da8171621f22a171af823e066e64e904.zip |
Add nVidia patches
-rw-r--r-- | flake.nix | 7 | ||||
-rw-r--r-- | hosts/arrakis/hardware-configuration.nix | 4 |
2 files changed, 9 insertions, 2 deletions
@@ -23,6 +23,11 @@ nixpkgs-stable.url = "github:nixos/nixpkgs/release-24.05"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; + nvidia-patch { + url = "github:icewind1991/nvidia-patch-nixos"; + inputs.nixpkgs.follows = "nixpkgs-unstable"; + }; + sops-nix = { url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs-unstable"; @@ -30,7 +35,7 @@ }; - outputs = inputs@{ home-manager-stable, home-manager-unstable, nixos-hardware, nixpkgs-stable, nixpkgs-unstable, sops-nix, ... }: { + outputs = inputs@{ home-manager-stable, home-manager-unstable, nixos-hardware, nixpkgs-stable, nixpkgs-unstable, nvidia-patch, sops-nix, ... }: { nixosConfigurations = { diff --git a/hosts/arrakis/hardware-configuration.nix b/hosts/arrakis/hardware-configuration.nix index ed9b51e..0fb45a5 100644 --- a/hosts/arrakis/hardware-configuration.nix +++ b/hosts/arrakis/hardware-configuration.nix @@ -83,6 +83,8 @@ ]; }; + nixpkgs.overlays = [inputs.nvidia-patch.overlays.default]; + swapDevices = [ { device = "/dev/disk/by-label/swap1"; } { device = "/dev/disk/by-label/swap2"; } @@ -98,7 +100,7 @@ nvidia = { modesetting.enable = true; open = true; - package = config.boot.kernelPackages.nvidiaPackages.beta; + package = pkgs.nvidia-patch.patch-nvenc (pkgs.nvidia-patch.patch-fbc config.boot.kernelPackages.nvidiaPackages.beta); }; }; } |