diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2020-06-20 23:03:03 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2020-06-20 23:03:03 +0200 |
commit | 0e7885d2c8128e42417e8be4920cdcc77b433c38 (patch) | |
tree | c53e7863403151a8c5ead738527d1dbe1c07ce64 | |
parent | c23f904a3d99e6c9460b7c5fa0124129b2795f48 (diff) | |
download | nixos-0e7885d2c8128e42417e8be4920cdcc77b433c38.tar nixos-0e7885d2c8128e42417e8be4920cdcc77b433c38.tar.gz nixos-0e7885d2c8128e42417e8be4920cdcc77b433c38.tar.bz2 nixos-0e7885d2c8128e42417e8be4920cdcc77b433c38.tar.xz nixos-0e7885d2c8128e42417e8be4920cdcc77b433c38.zip |
...
-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 | ]; |