Home manager config in aspect included in host does not pass to user #548
Unanswered
jadestar1864
asked this question in
Help - Issues / Problem Solving / How To
Replies: 2 comments 8 replies
|
I think what you might be looking for is the mutual provider battery that ships with den. |
5 replies
|
In a similar vein, I've got this failing test too, though I'm not sure if it's entirely related or not, or something funky that still needs to be worked out with policies? I know @sini was resolving the issues with flake.tests.bogus = {
test-something = denTest (
{
den,
lib,
igloo, # igloo = nixosConfigurations.igloo.config
tuxHm, # tuxHm = igloo.home-manager.users.tux
...
}: {
# replace <system> if you are reporting a bug in MacOS
den.hosts.x86_64-linux.igloo.users.tux = {};
den.schema.user.includes = [den.batteries.host-aspects];
den.aspects.my-aspect.homeManager.programs.jujutsu.enable = true;
den.aspects.igloo.includes = [den.aspects.my-aspect];
den.aspect.tux.includes = [
(den.lib.policy.when ({host, ...}: host.hasAspect den.aspects.my-aspect) {
homeManager.programs.jujutsu.settings.git.sign-on-push = true;
})
];
expr = tuxHm.programs.jujutsu.settings.git.sign-on-push;
expected = true;
}
);
}; |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Not sure if this is how this is supposed to work, but this test is failing
I expected the homeManager config from my-aspect would pass the
programs.git.enable = truetotux, but this fails. If this isn't intended, how should I pass a "global" homeManager config from a non-entity aspect?All reactions