2021-09-12 06:06:34 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, latestKernel ? false, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "disable-installer-tools";
|
|
|
|
|
2022-03-20 23:15:30 +00:00
|
|
|
nodes.machine =
|
2021-09-12 06:06:34 +00:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
system.disableInstallerTools = true;
|
|
|
|
boot.enableContainers = false;
|
|
|
|
environment.defaultPackages = [];
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
machine.wait_for_unit("multi-user.target")
|
|
|
|
machine.wait_until_succeeds("pgrep -f 'agetty.*tty1'")
|
|
|
|
|
|
|
|
with subtest("nixos installer tools should not be included"):
|
|
|
|
machine.fail("which nixos-rebuild")
|
|
|
|
machine.fail("which nixos-install")
|
|
|
|
machine.fail("which nixos-generate-config")
|
|
|
|
machine.fail("which nixos-enter")
|
|
|
|
machine.fail("which nixos-version")
|
|
|
|
machine.fail("which nixos-build-vms")
|
|
|
|
|
|
|
|
with subtest("perl should not be included"):
|
|
|
|
machine.fail("which perl")
|
|
|
|
'';
|
|
|
|
})
|