1{ 2 pkgs, 3 latestKernel ? false, 4 ... 5}: 6 7{ 8 name = "disable-installer-tools"; 9 10 nodes.machine = 11 { pkgs, lib, ... }: 12 { 13 system.disableInstallerTools = true; 14 environment.defaultPackages = [ ]; 15 }; 16 17 testScript = '' 18 machine.wait_for_unit("multi-user.target") 19 machine.wait_until_succeeds("pgrep -f 'agetty.*tty1'") 20 21 with subtest("nixos installer tools should not be included"): 22 machine.fail("which nixos-rebuild") 23 machine.fail("which nixos-install") 24 machine.fail("which nixos-generate-config") 25 machine.fail("which nixos-enter") 26 machine.fail("which nixos-version") 27 machine.fail("which nixos-build-vms") 28 29 with subtest("perl should not be included"): 30 machine.fail("which perl") 31 ''; 32}