The test plan is taken from https://github.com/thufschmitt/rootless-nix-daemon-test. That intentionally used non-NixOS to get around the ambient Nix daemon, but with newer NixOS we can in fact disable the ambient Nix daemon an run our own! A few things which are needed to make this nicer in the future - https://github.com/NixOS/nixpkgs/issues/3702 A now-fixed issue, but won't be available until 23.05 - https://github.com/NixOS/nixpkgs/issues/263248 https://github.com/NixOS/nixpkgs/issues/263250 Newly opened issues inspired by the process of writing this test.