1 import ../make-test-python.nix ({ pkgs, lib, incus ? pkgs.incus-lts, ... } :
4 name = "incus-socket-activated";
7 maintainers = lib.teams.lxc.members;
10 nodes.machine = { lib, ... }: {
15 socketActivation = true;
18 networking.nftables.enable = true;
22 machine.wait_for_unit("incus.socket")
24 # ensure service is not running by default
25 machine.fail("systemctl is-active incus.service")
26 machine.fail("systemctl is-active incus-preseed.service")
28 # access the socket and ensure the service starts
29 machine.succeed("incus list")
30 machine.wait_for_unit("incus.service")