From 268a95f2e46717dfe7b1543817f9faebc53892d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 17 Jun 2025 19:04:17 +0200 Subject: [PATCH] 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. --- lib/flake-parts/clan-nixos-test.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/lib/flake-parts/clan-nixos-test.nix b/lib/flake-parts/clan-nixos-test.nix index 9ee4fee58..3c5267b47 100644 --- a/lib/flake-parts/clan-nixos-test.nix +++ b/lib/flake-parts/clan-nixos-test.nix @@ -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)