nixos-config/tests/containers-default.nix

25 lines
402 B
Nix
Raw Normal View History

2024-10-28 09:51:44 +00:00
{
callPackage,
testers,
nixos-config,
inputs,
}:
testers.runNixOSTest {
name = "container-default-test";
nodes.default = {
config,
pkgs,
nixos-config,
...
}: {
imports = [
2024-10-28 13:58:23 +00:00
nixos-config.nixosModules.default
2024-10-28 09:51:44 +00:00
];
autoContainers = ["default"];
};
node.specialArgs = inputs;
testScript = ''
machine.wait_for_unit("container@default.service")
'';
}