Push redview Nix package to Attic cache on build #7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After building the Redview Nix package (
.#redview), the store closure should be pushed to the local Attic cache (https://attic.nimmog.uk/nixos) so other hosts (lyra, vega, electra, etc.) can pull pre-built binaries instead of rebuilding from source.Currently the
just deployflow in the nixos-config builds and activates the system closure but never pushes to Attic. Redview needs its own automation since it's developed independently of the NixOS config deploys.What's needed:
.#redview(or.#packages.x86_64-linux.redview) and pushes the out-path + its runtime closure to thenixosAttic bucketnixosbucket. The secretATTIC_TOKENshould be set in the repo/org secrets.attic push nixos $(nix build .#packages.x86_64-linux.redview --json | jq -r '.[].outputs.out')justrecipe in the redview project to do the same locally for ad-hoc pushesNotes from discussion:
attic.nimmog.uk, bucket isnixos, public key isnixos:tNn8ouVBQkqLS2qTq86V50TCL1AGn2NgwEhpxReo6jU=nix-settings.nixacross all hosts already listshttps://attic.nimmog.uk/nixosas a substituter, so any host with that config will automatically benefit from pushed binariesbdfrPython derivation and theredviewnpm package itself — the only two derivations not already oncache.nixos.org