4d7e344f69
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
27 lines
572 B
Nix
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;
|
|
};
|
|
|
|
}
|