Skip to content

profiles: add concept of suites #109

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

Merged
merged 3 commits into from
Feb 3, 2021
Merged

profiles: add concept of suites #109

merged 3 commits into from
Feb 3, 2021

Conversation

nrdxp
Copy link
Collaborator

@nrdxp nrdxp commented Feb 1, 2021

An alternative to #85. I wanted a mechanism for defining arbitrary users and profiles without mixing in concerned for specific hardware so we can easily pass them around and eventually generate different kinds of machines from them, e.g. containers.

  • Import attrs of profiles automatically with defaultImport.
  • Refactor profiles to ensure all are functions returning a module.
  • Add a suites.nix with collections of profiles.
  • Add suites as specialArgs to modules.
  • Add suite import to NixOS host.
  • same for users

@nrdxp nrdxp force-pushed the refac-profs branch 4 times, most recently from 07b26ca to 5d3d311 Compare February 2, 2021 03:57
@nrdxp
Copy link
Collaborator Author

nrdxp commented Feb 2, 2021

@blaggacao, any comments?

@nrdxp nrdxp force-pushed the refac-profs branch 3 times, most recently from 5aabf48 to a8dd757 Compare February 2, 2021 16:29
nrdxp added 3 commits February 2, 2021 09:39
* Import attrs of profiles automatically with `defaultImport`.
* Refactor profiles to ensure all are functions returning a module.
* Add a suites.nix with collections of profiles.
* Add suites as `specialArgs` to modules.
* Add suite import to NixOS host.
@nrdxp nrdxp merged commit 33f29d6 into template Feb 3, 2021
@nrdxp nrdxp deleted the refac-profs branch February 3, 2021 23:47
@blaggacao
Copy link
Contributor

The naming is spot on. 👍

Pacman99 added a commit that referenced this pull request Feb 26, 2022
109: Update module/special arguments r=blaggacao a=Pacman99

 - Remove `hosts` module argument, fixes #104 
 - Add `self` and `inputs` as a special argument for home-manager configs(portable & non-portable)

Co-authored-by: Parthiv Seetharaman <pachum99@myrdd.info>
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.

2 participants