-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
Mount /nix/store in /tmp/nix/store by default, make nix closures deployable without root #1605
Comments
-1 from me.
As time goes on and kernels update, this problem can be properly solved by user namespaces. In the mean time, I don't think doing something this semantically incorrect is actually a benefit. I wouldn't oppose work to make nixos be able to work with the store at an arbitrary location (I once made an attempt at that but made a dumb mistake and it was reverted and I didn't try again), after which you could of course do this on your own systems. |
Well that's why would i just bind mount /nix/store to /tmp/nix/store, but i Currently what i do for binary deployment on non-root non nix systems is
|
Thanks for explaining more clearly / in detail at NixOS/nix#16 (comment). I was being dull a bit, but now I'm fairly sure I understand you. Biggest issues I see:
Can you elaborate on experiences with fakechroot? |
Yes, you would have to copy on every reboot on systems where you don't have I will look-up how LD_PRELOAD preforms, but as far as i know you would have And patching stuff after it gets build it's even more ugly.
|
Closing this, as this doesn't seem to belong in |
Let's say that you want to have binary deployments on ubuntu system where you don't have root access. What you currently could do is build package with other prefix(your home) with all dependecies, wait a hack of a lot of time to build and finally copy closure in correct location. There's one path on the system that's usually writable by anyone and that's /tmp.
But what if we mount --bind whole /nix/store on /tmp/nix/store and have that as prefix. It would not hurt nix installations in any way, but would allow us to have binary depoyments on non-root systems where you first extract whole closure on /tmp/nix/store and then run application.
I see a huge benefit in this. What do you think?
The text was updated successfully, but these errors were encountered: