mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-08 05:03:40 +00:00
![Marc Weber](/assets/img/avatar_default.png)
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
27 lines
547 B
Nix
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;
|
|
};
|
|
|
|
}
|