Compare commits

..

2 commits

Author SHA1 Message Date
5c0374cf51
add data model test for TF 2025-08-31 17:36:20 +02:00
12c51f1d11
simplify deployment/nixos.nix 2025-08-31 17:35:10 +02:00
2 changed files with 11 additions and 9 deletions

View file

@ -58,10 +58,10 @@ in
};
extraTestScript = ''
with subtest("ssh: Check the status before deployment"):
with subtest("Check the status before deployment"):
ssh.fail("hello 1>&2")
with subtest("ssh: Run the deployment"):
with subtest("Run the deployment"):
deployer.succeed("""
set -euo pipefail

View file

@ -11,13 +11,15 @@ let
};
modules = [ configuration ];
};
os = {
inherit (eval) pkgs config options;
system = eval.config.system.build.toplevel;
inherit (eval.config.system.build) vm vmWithBootLoader;
};
toplevel =
{
inherit (eval) pkgs config options;
system = eval.config.system.build.toplevel;
inherit (eval.config.system.build) vm vmWithBootLoader;
}
.config.system.build.toplevel;
in
{
drv_path = os.config.system.build.toplevel.drvPath;
out_path = os.config.system.build.toplevel;
drv_path = toplevel.drvPath;
out_path = toplevel;
}