microsoft/surface: add kernel switching for LTS and latest kernels

This commit is contained in:
Andre
2025-04-10 20:37:04 -04:00
parent de6fc55511
commit 8141742b12
9 changed files with 228 additions and 87 deletions

View File

@@ -3,14 +3,13 @@
fetchurl,
buildLinux,
linuxPackagesFor,
repos,
}:
let
inherit (builtins) elem;
inherit (lib) recurseIntoAttrs types versions;
repos = pkgs.callPackage ../repos.nix {};
linuxPackage =
{ url ? "mirror://kernel/linux/kernel/v${versions.major version}.x/linux-${version}.tar.xz",
sha256 ? null,