Copying a package from /nix/store to another machine?

I just installed nixos on one of my machines and I don’t like the new thunderbird. I do like it (good enough) on another nixos box that I’d installed previously. Can I do something like:

scp -r /nix/store/thunderbird new-machine:/nix/store?

Or, is there some nix command I have to use?


Is there any way to do it when I already have all /nix/store/thunderbird on the recipient machine? I don’t want to use ssh (via a secondary).

nix-store --dump <path>

copy to other computer

nix-store --restore <thing>.nar

may also work