clan-nixos-test: pass clan-core to test nodes via module args

This allows tests that need access to clan-core (e.g. for clan-cli or
dependencies) to use it within their node configurations.
This commit is contained in:
Jörg Thalheim
2025-06-17 19:04:17 +02:00
parent 3a1b2aede8
commit 268a95f2e4

View File

@@ -43,8 +43,16 @@ in
self.modules.nixosVmTest.clanTest
testModule
];
hostPkgs = pkgs;
defaults = {
imports = [
{
_module.args.clan-core = self;
}
];
};
}
);
in
@@ -63,8 +71,16 @@ in
self.modules.nixosVmTest.clanTest
testModule
];
hostPkgs = pkgs;
defaults = {
imports = [
{
_module.args.clan-core = self;
}
];
};
}
)
) cfg)