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