feat(mercury): trim closure 2.9G → 1.6G; deploy with --use-substitutes
mercury drops the sd-image installer profile (rescue tools, ZFS), linux-firmware, docs, installer tools and the nixpkgs registry pin — every deploy rewrites the changed closure onto the SD card. deploy switch/boot/test now passes --use-substitutes on all hosts: targets pull cache hits themselves (compressed) instead of the laptop pushing uncompressed NARs over ssh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -672,9 +672,12 @@ case "$cmd" in
|
||||
echo ">> nixos-rebuild $cmd .#$config on darman@$host"
|
||||
# --ask-sudo-password, not the deprecated --use-remote-sudo: common.nix sets
|
||||
# wheelNeedsPassword = true, and --use-remote-sudo never actually prompts.
|
||||
# --use-substitutes: the target pulls cache hits itself (compressed) instead
|
||||
# of the laptop pushing uncompressed NARs over ssh; misses are still pushed.
|
||||
rebuild=(nix run nixpkgs#nixos-rebuild -- "$cmd"
|
||||
--flake ".#$config"
|
||||
--target-host "darman@$host"
|
||||
--use-substitutes
|
||||
--ask-sudo-password)
|
||||
|
||||
item="${HOMELAB_PASS_ITEM:-darman@$config}"
|
||||
|
||||
Reference in New Issue
Block a user