# 1. Build locally nix --extra-experimental-features nix-command --extra-experimental-features flakes build .#packages.x86_64-linux.default # 2. Copy the store path over SSH to the target machine nix copy --to ssh://$1 ./result # 3. Add to user profile on the target machine ssh $1 "nix --extra-experimental-features flakes --extra-experimental-features nix-command profile add $(readlink -f ./result)"