nixos-hardware icon indicating copy to clipboard operation
nixos-hardware copied to clipboard

surface: linux 6.6.13 -> 6.7.6

Open gitwah opened this issue 1 year ago • 7 comments

Description of changes
Things done
  • [ ] Tested the changes in your own NixOS Configuration
  • [ ] Tested the changes end-to-end by using your fork of nixos-hardware and importing it via <nixos-hardware> or Flake input

gitwah avatar Feb 28 '24 12:02 gitwah

Fixes https://github.com/NixOS/nixos-hardware/issues/877

onny avatar Feb 28 '24 13:02 onny

Is it possible to build the kernel locally from inside the nixos-hardware repository? @stigtsp

this didn't work

nix-build -E "(import <nixpkgs> {}).callPackage ./microsoft/surface/common/kernel/linux-pac
kage.nix {}"

onny avatar Feb 28 '24 13:02 onny

Is it possible to build the kernel locally from inside the nixos-hardware repository? @stigtsp

this didn't work

nix-build -E "(import <nixpkgs> {}).callPackage ./microsoft/surface/common/kernel/linux-pac
kage.nix {}"

Because nixos-hardware tends to be trying to provide config at the machine-level, I've found it tricky to avoid running a build+install on real hardware.

Running the test suite def. catches things like syntax errors, but I personally also try to use nixos-rebuild build-vm on a faster machine, against a copy of the MS Surface's Nixos config, to pre-test it better.

If it builds at that stage, it's (so far) always been good enough to try installing on the Surface itself — which you'll ultimately have to do to check the kernel changes are working, of course!

mexisme avatar Feb 28 '24 21:02 mexisme

I'll try to build + test this on my Surface Go tonight (GMT+12)

mexisme avatar Mar 06 '24 05:03 mexisme

Because nixos-hardware tends to be trying to provide config at the machine-level, I've found it tricky to avoid running a build+install on real hardware.

@mexisme , @onny Just though I'd share my workflow; what I do is from my flake;

nix build .#nixosConfigurations.<hostname>.config.system.build.toplevel -L

Then I push that result to my surface with nix copy --to "ssh://<username>@<hostname>" ./result. That allows me to build the kernel and other packages on my desktop at least, verifying it runs on the device is still necessary.

iwanders avatar Mar 10 '24 17:03 iwanders

Since 6.7 is EOL, can this PR be updated to 6.8? I'm happy to test on my Surfaces :)

stigtsp avatar Apr 10 '24 13:04 stigtsp

Still working on this?

Mic92 avatar Apr 10 '24 14:04 Mic92

I think this was superseeded by https://github.com/NixOS/nixos-hardware/pull/912/files

Mic92 avatar May 19 '24 17:05 Mic92