1 # Test for NixOS' container nesting.
3 import ./make-test-python.nix ({ pkgs, ... }: {
6 meta = with pkgs.lib.maintainers; { maintainers = [ sorki ]; };
8 nodes.machine = { lib, ... }:
10 makeNested = subConf: {
13 privateNetwork = true;
17 in makeNested (makeNested { });
21 machine.wait_for_unit("container@nested.service")
22 machine.succeed("systemd-run --pty --machine=nested -- machinectl list | grep nested")
25 "systemd-run --pty --machine=nested -- systemd-run --pty --machine=nested -- systemctl status"