nix-shell rustup target add arm-unknown-linux-musleabihf cargo build --release --target arm-unknown-linux-musleabihf
nix-shell
rustup target add arm-unknown-linux-musleabihf
cargo build --release --target arm-unknown-linux-musleabihf
Then scp the release file to your raspi.