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

Store binary caches on Cachix?

Open JonathanReeve opened this issue 4 years ago • 9 comments

It'd be great if there were binary caches somewhere, like on Cachix, since when I try to use the Dell XPS 13 9310 configuration, it tries to rebuild my whole kernel, and you know, ain't nobody got time for that.

JonathanReeve avatar Oct 22 '21 17:10 JonathanReeve

It would need to be done in a way where using nixos-hardware pins to a built/cached Nixpkgs revision. Which may or may not be an issue depending on the needs. I guess as long as only the few leafy components desired are taken from that pinned Nixpkgs, it's less of an issue.

Otherwise it's basically impossible to have all plausible Nixpkgs revision (channel updates) built all the time, in addition to that, it would greatly increase cachix usage needlessly.

samueldr avatar Oct 22 '21 17:10 samueldr

We could add to our nix-community hydra. But in general we should also aim to move kernel options that trigger kernel rebuilds to nixpkgs rather than having them in nixos-hardware. See also this for the dell xps model in question: https://github.com/NixOS/nixos-hardware/blob/3aabf78bfcae62f5f99474f2ebbbe418f1c6e54f/dell/xps/13-9310/default.nix#L13

Mic92 avatar Oct 23 '21 13:10 Mic92

In hydra one can also define some nixpkgs branch as an input in addition to nixos-hardware and build it this way.

Mic92 avatar Oct 23 '21 13:10 Mic92

Is there any way to reduce build time yet? At least a method to rebuild faster? I am new to NixOS, so any direction would be nice.

bfcns avatar Nov 14 '22 14:11 bfcns

@zimbatm can we enable hydra on this repository?

Mic92 avatar Feb 21 '23 08:02 Mic92

Good idea. Can you add a declarative pipeline to the repo first?

zimbatm avatar Feb 21 '23 12:02 zimbatm

@Mic92 can I help you here? I'm planning to push some stuff in nixos-hardware for routers.

RaitoBezarius avatar Jun 25 '23 16:06 RaitoBezarius

If you can add a declarative hydra config to this repo, I can then connect it to Hydra.

zimbatm avatar Jun 25 '23 18:06 zimbatm