I have setup hydra to build my NixOS configs, with harmonia being used to serve the nix store of this server as a cache. My expectation is that on successful build of the flake, all derivations/packages/etc will be available in the nix store and cache.
When I build my laptop configuration, using the same commit of the flake, using nix build
/`nh os switch’ etc. A lot of packages are downloaded from the harmonia cache, but I see others are being built locally.
Is my expectation wrong that the nix commands should just be able to download the entire NixOS configuration?
This is the line of my flake.nix containing the hydraJob:
This is the Hydra jobset config:
State: | Enabled |
---|---|
Description: | |
Flake URI: | github:Lyndeno/nix-config |
Check interval: | 3600 |
Scheduling shares: | 1 (50.00% out of 2 shares) |
Enable Dynamic RunCommand Hooks: | No (not enabled by server) |
Number of evaluations to keep: | 10 |
Harmonia is set up with https through nginx. I was also getting the same behaviour when using nix-serve on port 5000 without https. I am not sure what other options I should be checking.