-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
Multiple problems when setting up multiple macos users #554
Comments
I was able to solve most of my issues, but it took a lot of digging.
|
This is being discussed in #96 |
This issue has been a major pain point for me too. I've found a few things out while messing with nix-darwin.
My current solution was to fork the repo and fix these issues for myself as well as bring some parity back between NixOS and nix-darwin user configuration settings (gets rid of
|
re home manager for darwin options: for sure, that's where they should live, and if any are missing I recommend creating a PR for the ones you need. I did it, it (eventually, after months) got merged, and now it's "as it should be" at least for that part. I consider system.defaults in nix-darwin obsolete and recommend moving off it entirely. |
I was hesitant to create a PR because a lot of what I did might be obsolete by the talks going on in #96, and as you said,
We can at least move the discussion there with the code and hopefully share ideas on how to best solve the problem around multiple users; especially in a secure setup with admin/user separation. |
Re per-user activation: see #763 |
I saw your PR while investigating this for myself, and it is also where I got the idea to use It highlights things perfectly for why this portion should be dropped from nix-darwin entirely since home-manager can do this much better already. I just didn't realize that until I had already done all this as I'm still very new to everything Nix. |
This is also a large hurdle for me. I would split work into a VM but no nested virtualization yet for MacOS guests. |
#1341 is up now, which paves the way towards first‐class multi‐user support. But I think your best option in the immediate term is probably combining nix-darwin with Home Manager, which can be integrated into nix-darwin configurations and supports configuring macOS defaults and launchd agents for individual users. |
@emilazy whilst home-manager works for most things there are issues when it comes to Thanks for the work. |
I am using nix-darwin on my macbook, I have it configured using flakes for which I mostly followed this gist:
https://gist.github.com/jmatsushita/5c50ef14b4b96cb24ae5268dab613050
I have recently added another user using the MacOS system preferences to better split my system up between work and private usage.
There are multiple issues with the services provided by nix-darwin on that account which do not exist on the user I originally set it up from.
Specifically I have encountered the following problems so far:
(casks are present, but only the applications, not the commands, i.e. vscode is installed but the
code
command cannot be used)system.defaults
options are not set up for that userAlso since the configuration itself resides in the homedir of the other user, I cannot access it by default.
I have since moved it to
/opt
but I am not sure if that is the right place to keep it.Is there anything special I need to do to setup nix-darwin for multiple users? The manual seems to be not have any information on it.
The text was updated successfully, but these errors were encountered: