nix icon indicating copy to clipboard operation
nix copied to clipboard

nix copy: Add --profile and --out-link flags

Open edolstra opened this issue 1 year ago • 2 comments

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.

edolstra avatar Oct 08 '24 13:10 edolstra

@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"?

edolstra avatar Oct 08 '24 14:10 edolstra

https://github.com/NixOS/nix/issues/11659 for the --profile documentation issue.

edolstra avatar Oct 08 '24 14:10 edolstra

Fixes https://github.com/NixOS/nix/issues/11790

arianvp avatar Nov 14 '24 15:11 arianvp

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

nixos-discourse avatar Jan 22 '25 12:01 nixos-discourse