sys="$(nix eval --raw "${LOCAL_CONFIG_PATH}#nixosConfigurations.${hostname}.config.system.build.toplevel")"
nix build "${LOCAL_CONFIG_PATH}#nixosConfigurations.${hostname}.config.system.build.toplevel" --out-link "$(mktemp -d)/result" |& nom
nix copy --to "ssh://$dest?remote-store=local?root=/mnt" "$sys" |& nom
Is there a way to know the size of the nix store that will be copied in the 3rd step?