20220725
nix copy -s --to ssh-ng://raspi /nix/store/nyj2j6z5gai6w2p8982ympmi8m9hpq82-bash-5.1-p16
ssh先で nix-store がないと言われ、/etc/bash.bashrc の先頭に以下を見つける。それより前にnix.shを読ませるようにする code:bash
# If not running interactively, don't do anything
ssh raspi envするとPATHが通ったのでヨシ
error: cannot add path '/nix/store/rzljzwz6bmr3lsy6gibnmkgr57ysdsry-libunistring-1.0' because it lacks a valid signature と言われるので,
おまじない!!→ sudo systemctl restart nix-daemon.service
drvを指定して送ってみたがそれはダメだった(以下例)
nix copy -s --to ssh-ng://raspi path.drv
nix copy -s --to ssh-ng://raspi --derivation /nix/store/nyj2j6z5gai6w2p8982ympmi8m9hpq82-bash-5.1-p16