digga
digga copied to clipboard
devos/darwin: refine users
I meant to include these changes in #438:
- Demonstrates the ability to define reusable home-manager user configurations
via
home.usersand import them into any arbitrary home-manager user within anixosordarwinprofile. - Rename the system/home users to
primaryto distinguish them from all the other references to 'darwin' and also to aid in demonstrating the flexibility of "portable" home-manager users - Use Digga's
collectHostsfunction to... collect hosts for derivinghomeConfigurations - Remove some extraneous comments
- Add some extraneous comments
Could we remove the nixos user and use admin/primary everywhere? It would make writing docs easier too, since we only have to reference one user to change.
yeah, good point. will update.
Could we remove the nixos user and use admin/primary everywhere?
I took a halfway approach, keeping the nixos user around but only using it in the bootstrap host since that's the expected user for live media.
Now I'm remembering that one of the reasons I split up the users was because nix-darwin lacks a lot of the basic users.users.<name>.* options. extraGroups, for one. Builds are failing during checks for that reason. But I have some prior art from my old work MacBook that I need to resurrect anyway, so I'll move those workarounds over to these examples in the process.
https://github.com/divnix/digga/runs/7312053064?check_suite_focus=true#step:7:312