setup up binary cache on server #16

Open
opened 2026-07-16 22:45:03 +02:00 by luuumine · 1 comment
Owner

right now, the server builds every package and configuration for each commit to main or to a pr branch.

the cache stays in the server's /nix/store because the runner is native. this allows the server to rebuild itself very quickly by leveraging these auto builds and not rebuilding when updating it.

issue: other nodes, such as luminix or luminout, do not benefit from this at all. to update those nodes, i need to either rebuild the system locally on the device, or to deploy the update from the server.

solution: expose the server's nix store as a binary cache over the vpn. then, configure the other nodes to use it as a substituter so they can just download the pre-built binaries instantly instead of compiling everything locally.

right now, the server builds every package and configuration for each commit to main or to a pr branch. the cache stays in the server's /nix/store because the runner is native. this allows the server to rebuild itself very quickly by leveraging these auto builds and not rebuilding when updating it. issue: other nodes, such as luminix or luminout, do not benefit from this at all. to update those nodes, i need to either rebuild the system locally on the device, or to deploy the update from the server. solution: expose the server's nix store as a binary cache over the vpn. then, configure the other nodes to use it as a substituter so they can just download the pre-built binaries instantly instead of compiling everything locally.
Author
Owner
see https://github.com/nix-community/harmonia ?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
luuumine/nixos#16
No description provided.