fix: Use nixpkgs 25.05 for building the kernel for the Surface tablets

instead of 25.11
This commit is contained in:
2025-12-04 17:04:53 -05:00
committed by Hunter Halloran
parent 6f3a0ff2bf
commit 53e3de1740
4 changed files with 49 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
{ inputs }:
{ inputs, ... }:
let
nixpkgs = inputs.nixpkgs;

View File

@@ -1,4 +1,11 @@
{ config, lib, modulesPath, ... }:
{ config, lib, pkgs, inputs, modulesPath, ... }:
let
refSystem = inputs.nixpkgs-old-kernel.lib.nixosSystem {
system = pkgs.system;
modules = [ inputs.nixos-hardware.nixosModules.microsoft-surface-go ];
};
refKernelPackages = refSystem.config.boot.kernelPackages;
in
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
@@ -16,7 +23,9 @@
"rd.systemd.show_status=auto"
];
disko.devices.disk.main.content.partitions.swap.size = "16G";
boot.kernelPackages = lib.mkForce refKernelPackages;
disko.devices.disk.main.content.partitions.swap.size = "8G";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;