Skip to content

feat: host-aspects battery for projecting host homeManager to users - #466

Merged
vic merged 2 commits into
mainfrom
feat/host-aspects
Apr 17, 2026
Merged

vic merged 2 commits into
mainfrom
feat/host-aspects

Conversation

@sini

@sini sini commented Apr 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • New battery den._.host-aspects that projects all homeManager-class configs from the host's aspect tree onto users who opt in
  • Wraps host.aspect with fixedTo { host, user } so the pipeline resolves it with class = "homeManager", collecting only homeManager keys
  • Other class keys (nixos, darwin) are ignored naturally by the pipeline

Usage

den.aspects.tux.includes = [ den._.host-aspects ];

Test plan

  • Host aspect with homeManager key projects to opted-in user
  • Host aspect with only nixos key does not leak into user's homeManager
  • Multiple host sub-aspects with homeManager keys all project
  • User who does NOT include the battery does not receive host homeManager configs
  • No circular evaluation when accessing both host and user configs
  • Full CI suite passes (498/498)

New battery den._.host-aspects that projects all homeManager-class
configs from the host's aspect tree onto users who opt in.

Usage: den.aspects.tux.includes = [ den._.host-aspects ];

Wraps host.aspect with fixedTo { host, user } so the pipeline resolves
it with class = "homeManager", collecting only homeManager keys. Other
class keys (nixos, darwin) are ignored naturally.
@sini
sini force-pushed the feat/host-aspects branch from 371cc15 to a916ea7 Compare April 17, 2026 19:13
@sini sini self-assigned this Apr 17, 2026
@sini sini added allow-ci allow all CI integration tests super-autocompleted "Artificial Intelligence" terms nothing real, "Super Intelligence" is even more of a lie. labels Apr 17, 2026
@sini
sini requested a review from vic April 17, 2026 19:29
@vic

vic commented Apr 17, 2026

Copy link
Copy Markdown
Member

Thanks! I will merge.

My plan for the future (and for solving Pol's blogpost) is that we can make our fx handlers be much better at deduplication, discarding double contributions (this is related to you hashing arg values).

Once that is real, we won't need mutual-provider nor this battery. But we will also need auto-activated capabilities.

@vic vic added the merge-approved Approved, merge yourself when ready label Apr 17, 2026
@vic
vic merged commit fed2e34 into main Apr 17, 2026
29 of 38 checks passed
@vic
vic deleted the feat/host-aspects branch April 17, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-ci allow all CI integration tests merge-approved Approved, merge yourself when ready super-autocompleted "Artificial Intelligence" terms nothing real, "Super Intelligence" is even more of a lie.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants