mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-02 22:13:29 +01:00
surface: linux 6.8.9 -> 6.9.3
This commit is contained in:
1 parent
7738cb40f6
commit
5ca7d128e6
3 files changed
+35
-31
No files matched your search
@@ -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