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