summaryrefslogtreecommitdiffstats
path: root/nixos/tests/simple-container.nix
blob: 5cd3478f3d406589dabb3a1ee2f0912e1c9be94a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  name = "simple-container";

  containers = {
    machine = { pkgs, ... }: {
      users.users.root.packages = [ pkgs.hello ];
    };
    noprofile = { };
  };

  testScript = ''
    start_all()
    machine.succeed("hello")
    noprofile.fail("hello")
  '';
}