Skip to content

Conversation

@astratagem
Copy link
Collaborator

@astratagem astratagem commented Apr 28, 2022

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

@Pacman99
Copy link
Member

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.

@astratagem astratagem added this to the Release v0.12.0 milestone Jul 9, 2022
@astratagem
Copy link
Collaborator Author

yeah, good point. will update.

@astratagem astratagem force-pushed the darwin-user-tweaks branch from dd0eee2 to fb4107a Compare July 12, 2022 22:50
@astratagem
Copy link
Collaborator Author

astratagem commented Jul 12, 2022

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.

except in installation media
@astratagem astratagem force-pushed the darwin-user-tweaks branch from 4163b06 to cf0d820 Compare July 12, 2022 23:50
@astratagem astratagem self-assigned this Jul 12, 2022
@astratagem
Copy link
Collaborator Author

astratagem commented Jul 13, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants