From 5df43893906d6d2e943e12c6ad0b25c698c3f358 Mon Sep 17 00:00:00 2001 From: insert Date: Tue, 21 May 2024 20:47:56 -0400 Subject: [PATCH] new nvidia drivers! --- flake.nix | 1 + special/insertpclinux.nix | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/flake.nix b/flake.nix index c5a93ce..1b551bd 100644 --- a/flake.nix +++ b/flake.nix @@ -2,6 +2,7 @@ inputs = { # ... nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + nvidia-beta.url = "github:NixOS/nixpkgs/d5c3f1ef368b44fa63ff2a5b79578b9acbbb40db"; flatpaks.url = "github:GermanBread/declarative-flatpak/dev"; flatpaks.inputs.nixpkgs.follows = "nixpkgs"; hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; diff --git a/special/insertpclinux.nix b/special/insertpclinux.nix index 35b8981..5a89a51 100644 --- a/special/insertpclinux.nix +++ b/special/insertpclinux.nix @@ -3,15 +3,15 @@ environment.etc.nixpkgs.source = inputs.nixpkgs; networking.hostName = "insertpclinux"; services.xserver.videoDrivers = ["nvidia"]; - #nixpkgs.overlays = [ (self: super: (let - # patched_pkgs = import inputs.nixpkgs_patched { - # inherit (self) system; - # config.allowUnfree = true; - # }; - # in { - # linuxPackages = patched_pkgs.linuxPackages; - # })) ]; - #boot.kernelPackages = pkgs.linuxPackages; + nixpkgs.overlays = [ (self: super: (let + patched_pkgs = import inputs.nvidia-beta { + inherit (self) system; + config.allowUnfree = true; + }; + in { + linuxPackages = patched_pkgs.linuxPackages; + })) ]; + boot.kernelPackages = pkgs.linuxPackages; services.sunshine = { enable = true; @@ -41,7 +41,7 @@ # Optionally, you may need to select the appropriate driver version for your specific GPU. - package = config.boot.kernelPackages.nvidiaPackages.production; + package = config.boot.kernelPackages.nvidiaPackages.beta; };