1 import ../make-test-python.nix ({ pkgs, lib, ... } :
6 nodes.machine = { lib, ... }: {
10 lxc.lxcfs.enable = true;
16 name = "nixostestbr0";
19 "ipv4.address" = "10.0.100.1/24";
26 name = "nixostest_default";
30 network = "nixostestbr0";
44 name = "nixostest_pool";
53 def wait_for_preseed(_) -> bool:
54 _, output = machine.systemctl("is-active lxd-preseed.service")
55 return ("inactive" in output)
57 machine.wait_for_unit("sockets.target")
58 machine.wait_for_unit("lxd.service")
59 with machine.nested("Waiting for preseed to complete"):
60 retry(wait_for_preseed)
62 with subtest("Verify preseed resources created"):
63 machine.succeed("lxc profile show nixostest_default")
64 machine.succeed("lxc network info nixostestbr0")
65 machine.succeed("lxc storage show nixostest_pool")