diff options
-rw-r--r-- | sif.nix | 29 |
1 files changed, 20 insertions, 9 deletions
@@ -124,15 +124,26 @@ | |||
124 | nixpkgs.overlays = [ | 124 | nixpkgs.overlays = [ |
125 | (self: super: { | 125 | (self: super: { |
126 | linuxPackages_latest = super.linuxPackages_latest.extend (self: super: { | 126 | linuxPackages_latest = super.linuxPackages_latest.extend (self: super: { |
127 | nvidia_x11 = super.nvidia_x11.overrideAttrs (attrs: { | 127 | nvidiaPackages = super.nvidiaPackages // { |
128 | patches = [ | 128 | stable = super.nvidiaPackages.stable.overrideAttrs (attrs: { |
129 | (pkgs.fetchpatch { | 129 | patches = [ |
130 | name = "nvidia-kernel-5.7.patch"; | 130 | (pkgs.fetchpatch { |
131 | url = "https://gitlab.com/snippets/1965550/raw"; | 131 | name = "nvidia-kernel-5.7.patch"; |
132 | sha256 = "03iwxhkajk65phc0h5j7v4gr4fjj6mhxdn04pa57am5qax8i2g9w"; | 132 | url = "https://gitlab.com/snippets/1965550/raw"; |
133 | }) | 133 | sha256 = "03iwxhkajk65phc0h5j7v4gr4fjj6mhxdn04pa57am5qax8i2g9w"; |
134 | ]; | 134 | }) |
135 | }); | 135 | ]; |
136 | |||
137 | passthru = { | ||
138 | settings = pkgs.callPackage (import <nixpkgs/pkgs/os-specific/linux/nvidia-x11/settings.nix> self.nvidiaPackages.stable "15psxvd65wi6hmxmd2vvsp2v0m07axw613hb355nh15r1dpkr3ma") { | ||
139 | withGtk2 = true; | ||
140 | withGtk3 = false; | ||
141 | }; | ||
142 | |||
143 | persistenced = pkgs.lib.mapNullable (hash: pkgs.callPackage (import <nixpkgs/pkgs/os-specific/linux/nvidia-x11/persistenced.nix> self.nvidiaPackages.stable hash) { }) "13izz9p2kg9g38gf57g3s2sw7wshp1i9m5pzljh9v82c4c22x1fw"; | ||
144 | }; | ||
145 | }); | ||
146 | }; | ||
136 | }); | 147 | }); |
137 | }) | 148 | }) |
138 | ]; | 149 | ]; |