From 0914d659e8ee36179047c9743dcf53355da171fb Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 20 Jun 2020 13:27:14 +0200 Subject: ... --- sif.nix | 26 +++++++++++--------------- sif/boot.nix | 2 +- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/sif.nix b/sif.nix index 2e82ee1f..64f0244b 100644 --- a/sif.nix +++ b/sif.nix @@ -121,21 +121,17 @@ }; }; - 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"; - }) - ]; - }); - }); - }) - ]; + boot.kernelPackages = pkgs.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; diff --git a/sif/boot.nix b/sif/boot.nix index fbfcf5cd..29b4f4cd 100644 --- a/sif/boot.nix +++ b/sif/boot.nix @@ -22,7 +22,7 @@ plymouth.enable = true; - kernelPackages = pkgs.linuxPackages_latest; + # kernelPackages = pkgs.linuxPackages_latest; kernelParams = [ "i915.fastboot=1" "intel_pstate=no_hwp" "acpi_backlight=vendor" "thinkpad-acpi.brightness_enable=1" "quiet" ]; tmpOnTmpfs = true; -- cgit v1.2.3