I’d like to do nix-copy-closure
to a folder instead of a machine (for instance because I don’t have a good internet connection to the machine but I can easily mount the disk or to backup stuff).
What is the best way to do that?
I’d like to do nix-copy-closure
to a folder instead of a machine (for instance because I don’t have a good internet connection to the machine but I can easily mount the disk or to backup stuff).
What is the best way to do that?
If you do not mind using the experimental CLI:
$ nix build .#blog
…
$ nix copy .#blog --to $(pwd)/store --no-check-sigs
$ ll store/nix/store
Permissions Links Size User Group Date Modified Git Name
drwxr-xr-x 4 - nmelzer users 2022-11-08 22:15 -N ./
drwxr-xr-x 4 - nmelzer users 2022-11-08 22:15 -N ../
drwxr-xr-x 2 - nmelzer users 2022-11-08 22:15 -N .links/
dr-xr-xr-x 5 - nmelzer users 1970-01-01 01:00 -N gf89cbn3qk61fsdyp9ipwdnm21hrhyby-blog-nobbz-dev/
Awesome, thanks a lot!