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";