diff options
-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); }; }; } |