- adding an iso package to the flake
- floating dtbName up into the flake so it can be referenced by the module and the iso - linting with nixfmt-rfc-style
This commit is contained in:
parent
8e01e9917f
commit
dec99e46ed
3 changed files with 65 additions and 23 deletions
|
@ -1,3 +1,4 @@
|
|||
{ dtbName }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
|
@ -9,16 +10,12 @@ let
|
|||
|
||||
x13sPackages = import ./packages/default.nix { inherit lib pkgs; };
|
||||
|
||||
dtbName = "sc8280xp-lenovo-thinkpad-x13s.dtb";
|
||||
linuxPackages_x13s =
|
||||
if cfg.kernel == "mainline" then
|
||||
pkgs.linuxPackages_latest
|
||||
else
|
||||
pkgs.linuxPackagesFor (
|
||||
if cfg.kernel == "jhovold" then
|
||||
x13sPackages.linux_jhovold
|
||||
else
|
||||
throw "Unsupported kernel"
|
||||
if cfg.kernel == "jhovold" then x13sPackages.linux_jhovold else throw "Unsupported kernel"
|
||||
);
|
||||
dtb = "${linuxPackages_x13s.kernel}/dtbs/qcom/${dtbName}";
|
||||
dtbEfiPath = "dtbs/${cfg.kernel}/${config.boot.kernelPackages.kernel.version}/${dtbName}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue