Skip to content

Conversation

@vic
Copy link
Owner

@vic vic commented Dec 16, 2025

See #den > Set user unspecific home-manager options

This changeset introduces a new Den core context: { HM-OS-HOST } invoked on host aspects. This context is used by our home-manager integration but can also be used by any other host aspect to detect when HM is enabled, for example to set useGlobalPkgs.

This context is produced by hm-os-host.nix when it detects any host that has an OS supported by home-manager AND has at least one user with homeManager class.

The aspect from hm-os-host.nix is internal, always included in den.default.

When den._.home-manager integration is enabled, it reacts to the host-aspect { HM-OS-HOST } context and setups home-manager integration. For each user it calls user-aspect { HM-OS-USER } for hm-dependencies.nix to include the correct dependencies.

home-manager related code has been moved to ./provides/home-manager/.

This changeset introduces a new Den core context: `{ HM-OS-HOST }`
invoked on host aspects. This context is used by our home-manager
integration but can also be used by any other host aspect to
detect when HM is enabled, for example to set `useGlobalPkgs`.

This context is produced by `hm-os-host.nix` when it detects any
host that has an OS supported by home-manager AND has at least one
user with `homeManager` class.

The aspect from `hm-os-host.nix` is internal, always included in
`den.default`.

When `den._.home-manager` integration is enabled, it reacts to the
`host-aspect { HM-OS-HOST }` context and setups home-manager integration.
For each user it calls `user-aspect { HM-OS-USER }` for hm-dependencies.nix
to include the correct dependencies.

home-manager related code has been moved to ./provides/home-manager/.
@vic vic merged commit 64497b4 into main Dec 16, 2025
8 checks passed
@vic vic deleted the hm-host branch December 16, 2025 06:20
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