1{ pkgs, lib, ... }:
2{
3 name = "containers-unified-hierarchy";
4 meta = {
5 maintainers = with lib.maintainers; [ farnoy ];
6 };
7
8 nodes.machine =
9 { ... }:
10 {
11 containers = {
12 test-container = {
13 autoStart = true;
14 config = { };
15 };
16 };
17 };
18
19 testScript = ''
20 machine.wait_for_unit("default.target")
21
22 machine.succeed("echo 'stat -fc %T /sys/fs/cgroup/ | grep cgroup2fs' | nixos-container root-login test-container")
23 '';
24}