nixos-config/tests/containers-default.nix
Charlotte 🦝 Delenk ee15feae9b
Some checks failed
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #22158 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #22159 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra checks.x86_64-linux.containers-default Hydra build #22156 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #22157 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
use lix
2024-10-29 07:09:45 +01:00

24 lines
424 B
Nix

{
callPackage,
testers,
nixos-config,
inputs,
}:
testers.runNixOSTest {
name = "container-default-test";
nodes.default = {
config,
pkgs,
nixos-config,
...
}: {
imports = [
nixos-config.nixosModules.default
];
autoContainers = ["default"];
};
node.specialArgs = inputs // {inTester = true;};
testScript = ''
machine.wait_for_unit("container@default.service")
'';
}