nix copy: Add --profile and --out-link flags
Motivation
This allows nix copy to atomically copy a store path and point a profile to it, without the risk that the store path might be GC'ed in between. This is useful for instance when deploying a new NixOS system profile from a remote store.
Context
Priorities and Process
Add :+1: to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.
@fricklerhandwerk I agree, but that's a bit of a general problem beyond the scope of this PR, since currently every MixProfile command has this issue.
What do you mean with "appropriate blurb"?
https://github.com/NixOS/nix/issues/11659 for the --profile documentation issue.
Fixes https://github.com/NixOS/nix/issues/11790
This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/nix-2-26-released/59211/1