nixpkgs/tests/test-nixos-install-from-cd-config.nix
Marc Weber 4d7e344f69 Adding initial version of the nixos cd insallation test script using
qemu_kvm. Installation doesn't take place yet. VM is started
printing a remote controlled "Hello".

This serves as example how to run a vm within a bulid job.

svn path=/nixos/trunk/; revision=18887
2009-12-11 00:51:13 +00:00

27 lines
572 B
Nix

# this is the configuration which will be installed.
# The configuration is prebuild before starting the vm because starting the vm
# causes some overhead.
{pkgs, config, ...}: {
# make system boot and accessible:
require = [ ../modules/installer/cd-dvd/installation-cd-minimal-test-insecure.nix ];
boot.loader.grub = {
device = "/dev/sda";
copyKernels = true;
bootDevice = "(hd0,0)";
};
fileSystems = [
{ mountPoint = "/";
device = "/dev/sda1";
neededForBoot = true;
}
];
fonts = {
enableFontConfig = false;
};
}