Linux Surface Kernel Stuck at 6.12.19

Hello everyone, I’m a new nix user I’m using the Linux surface kernel for my surface laptop 3 and I’m having an issue so the kernel no matter what I do it’s stuck on 6.12.19 (the LTS version) I really want to get 6.18.2 and I am just wondering how I should go about doing this and if anyone else has had the same problem currently I am importing the kernel through flakes using the line

Input:

nixos-hardware.url = “github:8bitbuddhist/nixos-hardware?ref=surface-rust-target-spec-fix”;

Output:

nixos-hardware.nixosModules.microsoft-surface-common

hardware.microsoft-surface.kernelVersion = “stable” will get you 6.15.

The default is ”longterm”.

Ah alright thank you so much, is there no way to get 6.18 on nixos? I have it on arch and it says it’s 6.18 how come it’s different on Nixos?

NixOS does have 6.18. But you are using nixos-hardware, which in turn uses the linux-surface kernel. linux-surface only updated to 6.18 two days ago, and nixos-hardware has not yet been updated. You can track that update here: microsoft/surface: kernel 6.18 by 8bitbuddhist · Pull Request #1696 · NixOS/nixos-hardware · GitHub

Hey! That URL you’re using (github:8bitbuddhist/nixos-hardware?ref=surface-rust-target-spec-fix) is my personal branch. You can keep using it if you really want to, but keep in mind it’s not officially maintained or supported (yet).

Like Majiir mentioned, you can follow these PRs for updates:

Ohhh thank you so much

Yeah I’ve been using it because my build kept crashing due to the rust problem, thanks to much for fixing it!

1 Like

To keep things easy, I merged all the linux-surface updates onto a single branch. This includes kernel updates too (6.12.65 and 6.18.5): github:8bitbuddhist/nixos-hardware?ref=surface-kernel-6.18

PR: https://github.com/NixOS/nixos-hardware/pull/1696

2 Likes