diff --git a/modules/hardware/surface-pro6.nix b/modules/hardware/surface-pro6.nix index 67500ea..18bf96d 100644 --- a/modules/hardware/surface-pro6.nix +++ b/modules/hardware/surface-pro6.nix @@ -2,14 +2,14 @@ let fetchurl = pkgs.fetchurl; - fetchpatch = pkgs.fetchpatch; commit = "821d8f0685ebad0fa2c05c7080f45eafb28ad08c"; + kernelVersion = "5.14"; mkPatch = name: sha256: { name = name; - patch = fetchpatch { - name = name + ".patch"; - url = "https://raw.githubusercontent.com/linux-surface/linux-surface/${commit}/patches/5.13/${name}.patch"; - sha256 = sha256; + patch = fetchurl { + inherit sha256; + + url = "https://raw.githubusercontent.com/linux-surface/linux-surface/${commit}/patches/${kernelVersion}/${name}.patch"; }; }; cfg = config.ptw.hardware.surface;