-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to add root for copy commands. #4002
Comments
To tackle this problem we first copy the closure and then install it to the environment:
|
This is similar to what I am doing right now, just using |
So you would propose something like: nix copy --to ssh-ng://target?gc-root=/home/$USER/result ./result |
I think the following would work and be slightly more obvious: nix copy --to ssh-ng://target --add-root=/home/$USER/result ./result Currently |
Your option would make more sense if you can specify multiple targets. However right now it appears that additional |
I marked this as stale due to inactivity. → More info |
Bad bot
|
I marked this as stale due to inactivity. → More info |
Is your feature request related to a problem? Please describe.
Right now if you copy a derivation to another machine such as
nix-copy-closure machine.example ./result
it is liable to be garbage collected as soon as it is copied.Describe the solution you'd like
A way to copy a closure to a remote machine and atomically root it. Both system roots and indirect roots would be useful.
The text was updated successfully, but these errors were encountered: