Skip to content

Conversation

@vic
Copy link
Owner

@vic vic commented Dec 13, 2025

Allows users to have a base module for home/host/user definitions:

den.base.host = {
  # applies to all den.hosts.<system>.<name>
  # use it to define options all hosts might have.
};

den.base.user = { ... } # included in all den.hosts.<system>.<name>.users.<user>

den.base.home = { ... } # included in all den.homes.<system>.<name>

den.base.conf = { ... } # included in ANY host / user / home config.

Checkout tests for a working example of this feature.

@vic vic marked this pull request as ready for review December 13, 2025 06:08
@vic vic force-pushed the base branch 2 times, most recently from 2e9cc45 to cc5a2aa Compare December 14, 2025 04:47
@vic vic merged commit d114d8b into main Dec 14, 2025
8 checks passed
@vic vic deleted the base branch December 14, 2025 05:08
@HeitorAugustoLN
Copy link
Contributor

Really cool! I was a bit confused about this at first when reading the PR title, thinking it was basically den.default. But then I understood this is for the submodules for each definition of a host/user/home

@vic
Copy link
Owner Author

vic commented Dec 14, 2025

Yep, this is cool. Feature was request by @CarlosZ at zulipchat.

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