From f65edc9b4c1211cfa4f52307022593744a5b477c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 20 Jun 2020 13:19:55 +0200 Subject: patch nvidia on sif --- sif.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sif.nix b/sif.nix index 1b09f218..2e82ee1f 100644 --- a/sif.nix +++ b/sif.nix @@ -121,6 +121,22 @@ }; }; + nixpkgs.overlays = [ + (self: super: { + linuxPackages_latest = super.linuxPackages_latest.extend (self: super: { + nvidia_x11 = super.nvidia_x11.overrideAttrs (attrs: { + patches = [ + (pkgs.fetchpatch { + name = "nvidia-kernel-5.7.patch"; + url = "https://gitlab.com/snippets/1965550/raw"; + sha256 = "03iwxhkajk65phc0h5j7v4gr4fjj6mhxdn04pa57am5qax8i2g9w"; + }) + ]; + }); + }); + }) + ]; + services = { pcscd.enable = true; -- cgit v1.2.3