Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
29 lines
869 B
Nix
29 lines
869 B
Nix
import ./make-test-python.nix ({ pkgs, latestKernel ? false, ... }:
|
|
|
|
{
|
|
name = "disable-installer-tools";
|
|
|
|
nodes.machine =
|
|
{ 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")
|
|
'';
|
|
})
|