Clean up speaker patch
This commit is contained in:
parent
67415c4c7a
commit
be0f8db629
|
@ -1,7 +1,7 @@
|
|||
# Lenovo Legion S7 16ARHA7 configuration
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
let
|
||||
lenovo-speaker-fix-module = pkgs.callPackage ./patches/lenovo-speaker-fix.nix {
|
||||
lenovo-speaker-fix-module = pkgs.callPackage ./patches/lenovo-16ARHA7_speaker-fix.nix {
|
||||
# Make sure the module targets the same kernel as your system is using.
|
||||
inherit (config.boot.kernelPackages) kernel;
|
||||
};
|
||||
|
@ -38,11 +38,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 ];
|
||||
}))
|
||||
];
|
||||
extraModulePackages = [ lenovo-speaker-fix-module ];
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# Patch sourced from https://github.com/christian-bendiksen/kernel-6.8.0-63.16ARHA7.fc40
|
||||
{ pkgs, lib, kernel ? pkgs.linuxPackages_latest.kernel }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "lenovo-speaker-fix-module";
|
||||
pname = "lenovo-16ARHA7-speaker-fix-module";
|
||||
inherit (kernel) src version postPatch nativeBuildInputs;
|
||||
|
||||
kernel_dev = kernel.dev;
|
||||
|
@ -28,8 +29,10 @@ pkgs.stdenv.mkDerivation {
|
|||
modules_install
|
||||
'';
|
||||
|
||||
patches = [ ./lenovo_16ARHA7_sound_fix.patch ];
|
||||
|
||||
meta = {
|
||||
description = "Fix to get the speakers working for 16ARHA7";
|
||||
description = "Patch to get the speakers working for Lenovo Legion Slim 7 Gen 7 AMD (16ARHA7)";
|
||||
license = lib.licenses.gpl3;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue