I get a working system, but executing the test gives me:
$ nix-build -A nixosTests.simple-container
this derivation will be built:
/nix/store/zabp6n0hd377qgs27w4564smj5as59p4-container-test-run-simple-container.drv
error: feature 'uid-range' requires the setting 'auto-allocate-uids' to be enabled
But if I set nix.settings.auto-allocate-uids = true;, I can’t build my NixOS configuration, because the Nix config check fails:
ERROR stderr) Validating generated nix.conf
ERROR stderr) error: Ignoring setting 'auto-allocate-uids' because experimental feature 'auto-allocate-uids' is not enabled
ERROR stderr) error: builder for '/nix/store/pnhyrf65icvinl5921mnqz4ji2qi1pg8-nix.conf.drv' failed with exit code 1;
ERROR stderr) last 2 log lines:
ERROR stderr) > Validating generated nix.conf
ERROR stderr) > error: Ignoring setting 'auto-allocate-uids' because experimental feature 'auto-allocate-uids' is not enabled
ERROR stderr) For full logs, run:
ERROR stderr) nix log /nix/store/pnhyrf65icvinl5921mnqz4ji2qi1pg8-nix.conf.drv
ERROR stderr) error: 1 dependencies of derivation '/nix/store/56r1xis1bfmjjds2qqa5j3ayvbbiddpj-etc.drv' failed to build
If I disable the config check via nix.checkConfig = false; this results in a b0rken Nix daemon that can’t build anything:
error: the build users group 'nixbld' has no members