···
# The configuration of the system used to run "nixos-install".
+
../modules/profiles/installation-device.nix
+
../modules/profiles/base.nix
+
./common/auto-format-root-device.nix
+
# In systemdStage1, also automatically format the device backing the
+
virtualisation.fileSystems."/".autoFormat = systemdStage1;
+
boot.initrd.systemd.enable = systemdStage1;
+
# Use a small /dev/vdb as the root disk for the
+
# installer. This ensures the target disk (/dev/vda) is
+
# the same during and after installation.
+
virtualisation.emptyDiskImages = [ 512 ];
+
virtualisation.rootDevice = "/dev/vdb";
+
nix.package = selectNixPackage pkgs;
+
hardware.enableAllFirmware = mkForce false;
+
# The test cannot access the network, so any packages we
+
# need must be included in the VM.
+
system.extraDependencies =
+
nixos-artwork.wallpapers.simple-dark-gray-bottom
+
perlPackages.ConfigIniFiles
+
perlPackages.ListCompare
+
# make-options-doc/default.nix
+
(python3.withPackages (p: [ p.mistune ]))
+
switch-to-configuration-ng
+
# add curl so that rather than seeing the test attempt to download
+
# curl's tarball, we see what it's trying to download
+
++ optionals (bootLoader == "grub") (
+
zfsSupport = extraInstallerConfig.boot.supportedFilesystems.zfs or false;
+
(pkgs.grub2.override { inherit zfsSupport; })
+
(pkgs.grub2_efi.override { inherit zfsSupport; })
+
pkgs.nixos-artwork.wallpapers.simple-dark-gray-bootloader
+
pkgs.perlPackages.FileCopyRecursive
+
pkgs.perlPackages.XMLSAX
+
pkgs.perlPackages.XMLSAXBase
+
++ optionals (bootLoader == "systemd-boot") [
+
config.boot.bootspec.package
+
++ optionals clevisTest [ pkgs.klibc ]
+
++ optional systemdStage1 pkgs.chroot-realpath;
+
substituters = mkForce [ ];
imports = [ commonConfig ];