2006-11-13 00:30:03 +01:00
|
|
|
let
|
|
|
|
|
|
|
|
# The root device.
|
|
|
|
rootDevice = "/dev/hda1";
|
|
|
|
|
|
|
|
# The device on which GRUB should be installed (leave empty if you
|
|
|
|
# don't want GRUB to be installed).
|
|
|
|
grubDevice = "/dev/hda";
|
|
|
|
|
2006-11-13 12:41:27 +01:00
|
|
|
# Build boot scripts.
|
2006-11-13 17:19:57 +01:00
|
|
|
bootEnv = import ./boot-environment.nix {
|
2006-11-13 00:30:03 +01:00
|
|
|
autoDetectRootDevice = false;
|
|
|
|
inherit rootDevice;
|
2006-11-13 12:41:27 +01:00
|
|
|
stage2Init = "/init"; # !!! should be bootEnv.bootStage2;
|
|
|
|
readOnlyRoot = false;
|
2006-11-13 00:30:03 +01:00
|
|
|
};
|
|
|
|
|
2006-11-13 12:41:27 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
with bootEnv;
|
2006-11-13 00:30:03 +01:00
|
|
|
|
|
|
|
rec {
|
|
|
|
|
|
|
|
|
|
|
|
systemConfiguration = pkgs.stdenv.mkDerivation {
|
|
|
|
name = "system-configuration";
|
|
|
|
builder = ./system-configuration.sh;
|
|
|
|
inherit (pkgs) grub coreutils gnused gnugrep diffutils;
|
|
|
|
inherit grubDevice;
|
2006-11-13 12:41:27 +01:00
|
|
|
inherit bootStage2;
|
2006-11-13 00:30:03 +01:00
|
|
|
kernel = pkgs.kernel + "/vmlinuz";
|
|
|
|
initrd = initialRamdisk + "/initrd";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|