2009-01-02 16:07:30 +00:00
|
|
|
{pkgs, config, ...}:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pkgs) substituteAll writeText coreutils utillinux udev upstart;
|
|
|
|
kernel = config.boot.kernelPackages.kernel;
|
|
|
|
activateConfiguration = config.system.activationScripts.script;
|
|
|
|
inherit (config.boot) isLiveCD;
|
|
|
|
|
|
|
|
# Path for Upstart jobs. Should be quite minimal.
|
|
|
|
upstartPath = [
|
|
|
|
pkgs.coreutils
|
|
|
|
pkgs.findutils
|
|
|
|
pkgs.gnugrep
|
|
|
|
pkgs.gnused
|
|
|
|
pkgs.upstart
|
2006-11-04 00:01:13 +00:00
|
|
|
];
|
2009-01-02 16:07:30 +00:00
|
|
|
|
|
|
|
bootLocal = config.boot.localCommands;
|
|
|
|
|
|
|
|
bootStage2 = substituteAll {
|
|
|
|
src = ./boot-stage-2-init.sh;
|
|
|
|
isExecutable = true;
|
|
|
|
inherit kernel upstart isLiveCD activateConfiguration upstartPath;
|
|
|
|
path = [
|
|
|
|
coreutils
|
|
|
|
utillinux
|
|
|
|
udev
|
|
|
|
upstart
|
|
|
|
];
|
|
|
|
bootLocal = writeText "local-cmds" bootLocal;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
require = [
|
|
|
|
# config.boot.localCommands
|
|
|
|
# config.boot.kernelPackages
|
|
|
|
|
|
|
|
# config.system.activationScripts
|
2009-05-20 00:14:45 +01:00
|
|
|
../system/activate-configuration.nix
|
2009-01-02 16:07:30 +00:00
|
|
|
|
|
|
|
# config.system.build
|
2009-05-20 00:14:45 +01:00
|
|
|
../system/system-options.nix
|
2009-01-02 16:07:30 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
system = {
|
|
|
|
build = {
|
|
|
|
inherit bootStage2;
|
|
|
|
};
|
|
|
|
};
|
2006-11-04 00:01:13 +00:00
|
|
|
}
|