fix mainline kernel

This commit is contained in:
Adam Stephens 2024-02-20 08:55:19 -05:00
parent 5a4384c71b
commit 484e22bf03
No known key found for this signature in database
2 changed files with 19 additions and 8 deletions

View file

@ -10,14 +10,18 @@ let
x13sPackages = import ./packages/default.nix { inherit lib pkgs; };
dtbName = "sc8280xp-lenovo-thinkpad-x13s.dtb";
linuxPackages_x13s = pkgs.linuxPackagesFor (
if cfg.kernel == "jhovold" then
x13sPackages.linux_jhovold
else if cfg.kernel == "steev" then
x13sPackages.linux_steev
else
linuxPackages_x13s =
if cfg.kernel == "mainline" then
pkgs.linuxPackages_latest
);
else
pkgs.linuxPackagesFor (
if cfg.kernel == "jhovold" then
x13sPackages.linux_jhovold
else if cfg.kernel == "steev" then
x13sPackages.linux_steev
else
throw "Unsupported kernel"
);
dtb = "${linuxPackages_x13s.kernel}/dtbs/qcom/${dtbName}";
alsa-ucm-conf-env.ALSA_CONFIG_UCM2 = "${x13sPackages."x13s/alsa-ucm-conf"}/share/alsa/ucm2";