{ pkgs, tnixModules, nodeSpecialArgs }: pkgs.testers.nixosTest { name = "tnix-boot"; nodes.tnix = { _module.args = nodeSpecialArgs; imports = tnixModules; # nixosTest supplies pkgs externally (already carrying the config # above); configuration.nix's own nixpkgs.config.* then trips # nixpkgs.nix's "externally created instance" assertion regardless of # whether the values agree, so it must be forced empty here only. nixpkgs.config = pkgs.lib.mkForce { }; }; testScript = '' start_all() tnix.wait_for_unit("multi-user.target") ''; }