Apologies if I have miscategorized this post, but this may pertains to the official docs, and the only resources I could find in this topic so far are:
Are there official docs on how to change a single user install to a multi-user one (and vice versa)?
I don’t recall having seen anything exhaustive, but maybe someone’s got a conversion script or gist. Instructions can vary by platform, so if you find something like that, I’d make sure to verify it makes sense to run on your OS before giving it a go.
The “safe” route is to just uninstall, and reinstall. (The work described in Anyone up for picking at some Nix ~onboarding improvements? would make it fairly simple to achieve this.)
Since you’re asking about how to change it, I’m guessing you are hoping to avoid an uninstall, probably to preserve the existing store? (The installer might be able to directly support this via a flag after the work linked above, but I am shooting from the hip…).
If that’s a must and you can’t find a current conversion script out there, you’d probably need to piece together the differences from the single/multi-user install scripts (in the nix source’s scripts directory) to figure out what to remove and what to add.
Thanks! Appreciate the meticulous differentiation between “change” and “uninstall/re-install” as they are often not the same. I don’t currently need this but will have to use non-NixOS distros more and more in the future, and this will definitely come up at one point.
This reminds me of Nix issue #2799; if I will have to tackle this topic, will keep this issue in mind as well.
And again, thanks for the “onboarding improvements” thread (and for your work:)!