Add state-version option

This commit is contained in:
pinpox
2025-06-30 11:32:44 +02:00
parent ef3c22f240
commit 507152a1cc
6 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
{ ... }:
{
perSystem =
{ ... }:
{
clan.nixosTests.state-version = {
name = "state-version";
clan = {
directory = ./.;
# Workaround until we can use nodes.server = { };
modules."@clan/importer" = ../../../../clanServices/importer;
inventory = {
machines.server = { };
instances.importer = {
module.name = "@clan/importer";
roles.default.tags.all = { };
roles.default.extraModules = [
{
clan.core.settings.state-version.enable = true;
}
];
};
};
};
# TODO: Broken. Use instead of importer after fixing.
# nodes.server = { };
# This is not an actual vm test, this is a workaround to
# generate the needed vars for the eval test.
testScript = "";
};
};
}