digga icon indicating copy to clipboard operation
digga copied to clipboard

devos/darwin: refine users

Open montchr opened this issue 3 years ago • 4 comments

I meant to include these changes in #438:

  • Demonstrates the ability to define reusable home-manager user configurations via home.users and import them into any arbitrary home-manager user within a nixos or darwin profile.
  • Rename the system/home users to primary to 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 collectHosts function to... collect hosts for deriving homeConfigurations
  • Remove some extraneous comments
  • Add some extraneous comments

montchr avatar Apr 28 '22 04:04 montchr

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.

Pacman99 avatar Apr 30 '22 06:04 Pacman99

yeah, good point. will update.

montchr avatar Jul 09 '22 20:07 montchr

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.

montchr avatar Jul 12 '22 23:07 montchr

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

montchr avatar Jul 13 '22 00:07 montchr