Add support for require attributes inside children configurations.

svn path=/nixos/trunk/; revision=18820
This commit is contained in:
Nicolas Pierron 2009-12-05 19:21:57 +00:00
parent 05c23802bb
commit 82a891dc46

View file

@ -41,16 +41,17 @@ let
# you can provide an easy way to boot the same configuration
# as you use, but with another kernel
# !!! fix this
children =
children = with pkgs.lib;
map (childConfig:
(import ../../../default.nix {
configuration =
pkgs.lib.recursiveUpdate childConfig {
(import ../../../lib/eval-config.nix {
modules = [
(recursiveUpdate childConfig {
boot.loader.grub.device = "";
# undefined the obsolete name of the previous option.
boot.grubDevice = pkgs.lib.mkNotdef;
};
}).system
})
] ++ attrByPath ["require"] [] childConfig;
}).config.system.build.toplevel
) config.nesting.children;