From 67415c4c7a5c0bb09fdb5c125f567bc9b2bdfcbe Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 21 Mar 2024 18:40:36 -0400 Subject: [PATCH] Add attribution --- hosts/Shura/hardware-configuration.nix | 3 ++- hosts/Shura/patches/lenovo-speaker-fix.nix | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/hosts/Shura/hardware-configuration.nix b/hosts/Shura/hardware-configuration.nix index c1ebc55..a9e9e1f 100644 --- a/hosts/Shura/hardware-configuration.nix +++ b/hosts/Shura/hardware-configuration.nix @@ -3,7 +3,7 @@ let lenovo-speaker-fix-module = pkgs.callPackage ./patches/lenovo-speaker-fix.nix { # Make sure the module targets the same kernel as your system is using. - kernel = config.boot.kernelPackages.kernel; + inherit (config.boot.kernelPackages) kernel; }; in { @@ -37,6 +37,7 @@ in ]; # Add kernel patch to enable sound over the speakers. + # Patch sourced from https://github.com/christian-bendiksen/kernel-6.8.0-63.16ARHA7.fc40 extraModulePackages = [ (lenovo-speaker-fix-module.overrideAttrs (_: { patches = [ ./patches/lenovo_16ARHA7_sound_fix.patch ]; diff --git a/hosts/Shura/patches/lenovo-speaker-fix.nix b/hosts/Shura/patches/lenovo-speaker-fix.nix index 839fd42..aa75785 100644 --- a/hosts/Shura/patches/lenovo-speaker-fix.nix +++ b/hosts/Shura/patches/lenovo-speaker-fix.nix @@ -1,7 +1,4 @@ -{ pkgs -, lib -, kernel ? pkgs.linuxPackages_latest.kernel -}: +{ pkgs, lib, kernel ? pkgs.linuxPackages_latest.kernel }: pkgs.stdenv.mkDerivation { pname = "lenovo-speaker-fix-module";