From dcc3dde702ca681f639c5542946162278888cc87 Mon Sep 17 00:00:00 2001 From: UGA Innovation Factory Date: Wed, 7 Jan 2026 21:20:10 -0500 Subject: [PATCH] fix: Repair Surface tablet kernel specifics that got lost in the refactor --- hw/nix-surface.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hw/nix-surface.nix b/hw/nix-surface.nix index 4452f88..36544f0 100644 --- a/hw/nix-surface.nix +++ b/hw/nix-surface.nix @@ -7,10 +7,19 @@ { config, lib, + pkgs, modulesPath, inputs, ... }: +let + # Use older kernel version for better Surface Go compatibility + refSystem = inputs.nixpkgs-old-kernel.lib.nixosSystem { + system = pkgs.stdenv.hostPlatform.system; + modules = [ inputs.nixos-hardware.nixosModules.microsoft-surface-go ]; + }; + refKernelPackages = refSystem.config.boot.kernelPackages; +in { imports = [ (modulesPath + "/installer/scan/not-detected.nix") @@ -42,6 +51,9 @@ "i915.enable_dc=0" # Disable display power saving ]; + # Use older kernel for better Surface hardware support + boot.kernelPackages = lib.mkForce refKernelPackages; + # ========== Filesystem Configuration ========== athenix.host.filesystem.swapSize = lib.mkDefault "8G"; athenix.host.filesystem.device = lib.mkDefault "/dev/mmcblk0"; # eMMC storage # eMMC storage