| 1 | { |
| 2 | # From <https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/development/running-nixos-tests.section.md#system-requirements-sec-running-nixos-tests-requirements>: |
| 3 | # > NixOS tests using systemd-nspawn containers require the Nix daemon to be |
| 4 | # > configured with the following settings: |
| 5 | nix.settings = { |
| 6 | auto-allocate-uids = true; |
| 7 | extra-system-features = [ "uid-range" ]; |
| 8 | experimental-features = [ |
| 9 | "auto-allocate-uids" |
| 10 | "cgroups" |
| 11 | ]; |
| 12 | }; |
| 13 | |
| 14 | # Required for communication between nspawn containers and qemu vms. |
| 15 | # Disabled for now, see <https://github.com/NixOS/infra/issues/987>. |
| 16 | # nix.settings.sandbox-paths = [ "/dev/net" ]; |
| 17 | } |