Skip to content
Discussion options

You must be logged in to vote

Just wanted to mention that I got this working nicely. The gist was very helpful, thanks again @sini. I implemented Option 1 as shown, but then created a policy to automatically inject settings from either host.settings on NixOS or home.settings on standalone home-manager:

# den/policies/settings-injection.nix
{ den, ... }:
{
  den.policies.settings-injection =
    {
      host ? null,
      home ? null,
      ...
    }:
    [
      (den.lib.policy.resolve {
        settings =
          if host ? settings then
            host.settings
          else if home ? settings then
            home.settings
          else
            throw "No settings found on host or home";
      })
    ];
}
# …

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
1 reply
@lucasshiva
Comment options

Comment options

You must be logged in to vote
8 replies
@lucasshiva
Comment options

@sini
Comment options

sini Jun 26, 2026
Maintainer

@sini
Comment options

sini Jun 26, 2026
Maintainer

@amanako
Comment options

@lucasshiva
Comment options

Comment options

You must be logged in to vote
2 replies
@sini
Comment options

sini Jun 28, 2026
Maintainer

@lucasshiva
Comment options

Answer selected by lucasshiva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants