mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-06 01:48:50 +08:00
surface: linux 6.8.9 -> 6.9.3
This commit is contained in:
committed by
mergify[bot]
parent
7738cb40f6
commit
5ca7d128e6
31
microsoft/surface/common/kernel/linux-6.9.x/default.nix
Normal file
31
microsoft/surface/common/kernel/linux-6.9.x/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkIf mkOption;
|
||||
|
||||
inherit (pkgs.callPackage ../linux-package.nix { }) linuxPackage surfacePatches isVersionOf versionsOfEnum;
|
||||
|
||||
cfg = config.microsoft-surface;
|
||||
|
||||
version = "6.9.3";
|
||||
kernelPatches = surfacePatches {
|
||||
inherit version;
|
||||
patchFn = ./patches.nix;
|
||||
};
|
||||
kernelPackages = linuxPackage {
|
||||
inherit version kernelPatches;
|
||||
sha256 = "1bnzxparybwh320019pr2msaapas41dhjmvg4gy791rn05jc88f3";
|
||||
ignoreConfigErrors=true;
|
||||
};
|
||||
|
||||
in {
|
||||
options.microsoft-surface.kernelVersion = mkOption {
|
||||
type = versionsOfEnum version;
|
||||
};
|
||||
|
||||
config = mkIf (isVersionOf cfg.kernelVersion version) {
|
||||
boot = {
|
||||
inherit kernelPackages;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user