-
-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite the microsoft/surface linuxPackage
function to make it simpler to use
#851
Conversation
…os-hardware into microsoft/surface/kernel-6.6
…to "linuxPackage"
I had to manually set |
Btw, are there plans to cache the builds somehow? Either in the regular cache or the nix-community one? To avoid the frequent recompilations? |
Everything seems to work on my machine. Batteries are detected (but they are with stock kernel too), the camera works (using v4l2loopback), and touchscreen too. |
Yes, I ran out of time to find this, and just found + fixed it: Thanks for testing it! |
Ah, I see how that code was intended, now; I misinterpreted the intention. |
…le to auto-allow the major.minor.patch to be auto-selected
98e04a5
to
85a2b55
Compare
I think I've fixed it — i.e. restored the functionality — so you can set the major.minor version as the default kernel-version. |
IDK if the Partly perhaps because I've been told that some people would prefer the hardware-specific fixes were rolled-into the main |
After a flake update I could unset the kernelVersion and it didn't complain and didn't try to build a different version, so it's probably fixed. |
But one also cache just the microsoft part of nixos-hardware. This is done by someone with a powerful machine (or some build system somewhere), and uploaded to the binary cache. And sorry that this is off topic... |
Afraid I'm not sure what the right thing to say, here, would be? Perhaps looking into creating your own small build-cluster might help?
Desktop-style machines are almost always more performant than laptops, primarily because they can provide much better power and cooling, and even some of the very small 2nd-hand office-style machines can be surprisingly quick for the cost. |
If you can help me to add a hydra jobset to this repository, we can enable hydra.nixos.org for this repository. Than everything would land in the official binary cache. |
@mergify queue |
❌ Pull request must be rebased manuallyThe pull request can't be rebased without conflict and must be rebased manually |
@mergify rebase |
❌ Base branch update has failedGit reported the following error:
|
@mergify update |
✅ Branch has been successfully updated |
@mergify queue |
❌ Pull request must be rebased manuallyThe pull request can't be rebased without conflict and must be rebased manually |
I have created a new Issue to discuss this here: |
Description of changes
The original
linuxPackage
function required passing-in more metadata / params than necessary (apologies for my code!).I rewrote it some months ago, based on a similar set of functions I use in a private repo to (hopefully) make it simpler to use.
Things done
nixos-hardware
andimporting it via
<nixos-hardware>
or Flake input