build-clan: fix specialArgs not passed

This commit is contained in:
DavHau
2024-08-04 13:06:28 +07:00
parent 4c73b64c6e
commit a4ca900427
3 changed files with 27 additions and 7 deletions

View File

@@ -6,10 +6,10 @@
...
}:
let
eval = import ./eval.nix { inherit lib nixpkgs clan-core; };
self = ./.;
evalClan = eval { inherit self; };
evalClan = import ./eval.nix {
inherit lib nixpkgs clan-core;
self = ./.;
};
in
#######
@@ -131,4 +131,22 @@ in
"machine2"
];
};
test_buildClan_specialArgs =
let
result = buildClan {
directory = ./.;
meta.name = "test";
specialArgs.foo = "dream2nix";
machines.machine2 =
{ foo, ... }:
{
networking.hostName = foo;
};
};
in
{
expr = result.nixosConfigurations.machine2.config.networking.hostName;
expected = "dream2nix";
};
}