From b9737678cd5c57e94661b0d69fe10abaa1f722b5 Mon Sep 17 00:00:00 2001 From: David Wagner Date: Thu, 1 Aug 2024 17:21:03 +0200 Subject: [PATCH] doc: How to push runtime closure --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 8a78a9d..63fc1ed 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,16 @@ $ nix eval .#nixosConfigurations.nuc.config.networking.firewall.allowedTCPPorts 9093 9100 9883 ] ``` +Push a [runtime closure](https://docs.cachix.org/pushing#pushing-runtime-closure) +of a locally built derivation to Cachix: + +``` +export CACHIX_AUTH_TOKEN=... +nix build -L --json .#nixosConfigurations.rp3.config.system.build.toplevel \ + | nix run nixpkgs#jq -- -r '.[].outputs | to_entries[].value' + | nix run nixpkgs#cachix -- push wagdav +``` + ## Router Linksys WRT ACM-3200 running OpenWRT.