-
|
I'm probably missing something really simple, but how does the I assumed the following would work, but it doesn't seem like the pro.test-user._.test-host =
{ toHost, fromUser }:
{
includes = [
{
nixos =
{ pkgs, ... }:
{
users.users.${fromUser.name}.packages = [ pkgs.hello ];
};
homeManager =
{ pkgs, ... }:
{
home.packages = [ pkgs.gnugrep ];
};
}
];
};(full test in this branch: https://github.com/Cybolic/nix-den-double-import-demo/blob/home-manager/modules/hosts.nix) Also, minor thing - and I get why it doesn't work with the new signatures for the dependencies - but it would be nice to be able to do a short-form include - just as a convenience: pro.test-user._.test-host.includes = [
{
nixos =
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.hello ];
};
}
]; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
|
I figured it out (thanks to looking at dependencies.nix). So, this won't work: But this will: |
Beta Was this translation helpful? Give feedback.
I figured it out (thanks to looking at dependencies.nix).
The "direction" of the "provides" needs to be reversed for this case.
So, this won't work:
pro.test-user._.test-host = { fromUser, toHost }: { homeManager = ... }But this will:
pro.test-host._.test-user = { fromHost, toUser }: { homeManager = ... }