buildClan function: export all machines via nixosModules/darwinModules

We want each machine not only to be exposed via nixosConfigurations but also as a module.
This allows re-importing the machine in tests and override the architecture for example.
This commit is contained in:
DavHau
2025-06-09 18:00:28 +07:00
parent baeefc8ba1
commit d37c7c4c05
12 changed files with 100 additions and 25 deletions

View File

@@ -62,6 +62,6 @@
in
{
clan = clan_attrs_json;
inherit (clan) nixosConfigurations clanInternals;
inherit (clan) nixosConfigurations nixosModules clanInternals;
};
}

View File

@@ -44,6 +44,6 @@
};
in
{
inherit (clan) nixosConfigurations clanInternals;
inherit (clan) nixosConfigurations nixosModules clanInternals;
};
}

View File

@@ -19,6 +19,6 @@
};
in
{
inherit (clan) nixosConfigurations clanInternals;
inherit (clan) nixosConfigurations nixosModules clanInternals;
};
}