Export some configuration data about on-boot layout

svn path=/nixos/trunk/; revision=15428
This commit is contained in:
Michael Raskin 2009-05-03 11:08:17 +00:00
parent d90d3420ef
commit 26e952582f

View File

@ -379,6 +379,11 @@ rec {
grubSplashImage bootMount configurationLimit; grubSplashImage bootMount configurationLimit;
}; };
children = map (x: ((import ./system.nix)
{ inherit platform;
configuration = x//{boot=((x.boot)//{grubDevice = "";});};}).system)
config.nesting.children;
configurationName = config.boot.configurationName;
# Putting it all together. This builds a store object containing # Putting it all together. This builds a store object containing
# symlinks to the various parts of the built configuration (the # symlinks to the various parts of the built configuration (the
@ -398,6 +403,8 @@ rec {
inherit grubMenuBuilder; inherit grubMenuBuilder;
inherit etc; inherit etc;
inherit systemPath; inherit systemPath;
inherit children;
inherit configurationName;
kernel = kernel + "/vmlinuz"; kernel = kernel + "/vmlinuz";
initrd = initialRamdisk + "/initrd"; initrd = initialRamdisk + "/initrd";
# Most of these are needed by grub-install. # Most of these are needed by grub-install.
@ -415,11 +422,6 @@ rec {
# when the parent configuration is boot default. For example, # when the parent configuration is boot default. For example,
# you can provide an easy way to boot the same configuration # you can provide an easy way to boot the same configuration
# as you use, but with another kernel # as you use, but with another kernel
children = map (x: ((import ./system.nix)
{ inherit platform;
configuration = x//{boot=((x.boot)//{grubDevice = "";});};}).system)
config.nesting.children;
configurationName = config.boot.configurationName;
}) config.environment.checkConfigurationOptions }) config.environment.checkConfigurationOptions
optionDeclarations config; optionDeclarations config;