nixpkgs/modules/installer/cd-dvd/test-nixos-install-from-cd-config.nix
Marc Weber 401fd84ae1 kvm installation test update + NixOS installation archive
You can run the kvm nixos installation test by:
  nix-build --no-out-link tests/test-nixos-install-from-cd.nix
It boots the installed system.
It still fails sshd isn't started (yet)

adding nixos-bootstrapping-archive:
You can install NixOS easily using any live cd now.
See README-BOOTSTRAP-NIXOS

svn path=/nixos/trunk/; revision=18950
2009-12-15 06:37:32 +00:00

27 lines
547 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 = [ ./installation-cd-minimal-test-insecure.nix ];
boot.loader.grub = {
device = "/dev/sda";
copyKernels = false;
bootDevice = "(hd0,0)";
};
fileSystems = [
{ mountPoint = "/";
device = "/dev/sda1";
neededForBoot = true;
}
];
fonts = {
enableFontConfig = false;
};
}