mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	Update to kernel 6.1.6
This commit is contained in:
		@@ -8,7 +8,7 @@ let
 | 
			
		||||
 | 
			
		||||
  cfg = config.microsoft-surface;
 | 
			
		||||
 | 
			
		||||
  version = "6.1.3";
 | 
			
		||||
  version = "6.1.6";
 | 
			
		||||
  extraMeta.branch = "6.1";
 | 
			
		||||
  patchDir = repos.linux-surface + "/patches/${extraMeta.branch}";
 | 
			
		||||
  kernelPatches = pkgs.callPackage ./patches.nix {
 | 
			
		||||
@@ -20,17 +20,17 @@ let
 | 
			
		||||
    inherit version extraMeta kernelPatches;
 | 
			
		||||
    src = fetchurl {
 | 
			
		||||
      url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz";
 | 
			
		||||
      sha256 = "sha256-bcia56dRPkM8WXxzRu1/9L/RFepDo7XiemvbOMVYAxc=";
 | 
			
		||||
      sha256 = "sha256-Pk2OVh2lcDogWujXsr7WxcZPxCme68v9IEgeY7V9XuM=";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
in {
 | 
			
		||||
  options.microsoft-surface.kernelVersion = mkOption {
 | 
			
		||||
    type = types.enum [ "6.1.3" ];
 | 
			
		||||
    type = types.enum [ "6.1.6" ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf (cfg.kernelVersion == "6.1.3") {
 | 
			
		||||
  config = mkIf (cfg.kernelVersion == "6.1.6") {
 | 
			
		||||
    boot = {
 | 
			
		||||
      inherit kernelPackages;
 | 
			
		||||
    };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user