how can i share the same profile between root and my user?
Hello you all, so basically i installed Nix in my machine, and i wanted a way to install packages, with nix-env --install, and those packages share with the root account, i was reading about nix multi-user and i'm gonna be honest, i didn't understood shit, i need to enable daemon for both root and my user?, or this only works between users, not root?, etc. thanks for any answer!
The better question is do you actually need to do that. Something like sudocmd() { sudo "$(which "$1")" "${@:2}"; } will automate sudoing user packages.
oh, yeah, i agree with you, that line of code is exactly what i wanted, thanks!
btw, why i needed the single user installation?, wasn't multi-user made exactly for managing the packages/profiles between different users?