* More cleanup.

svn path=/nixos/branches/modular-nixos/; revision=15768
This commit is contained in:
Eelco Dolstra 2009-05-28 13:36:38 +00:00
parent 3c84d56273
commit 29611e49fd
4 changed files with 20 additions and 42 deletions

View File

@ -3,7 +3,6 @@
../system/assertion.nix
../system/nixos-environment.nix
../system/nixos-installer.nix
../system/system-options.nix
../upstart-jobs/cron/locate.nix
../upstart-jobs/filesystems.nix
../upstart-jobs/guest-users.nix

View File

@ -2,6 +2,25 @@
let
options = {
system.build = pkgs.lib.mkOption {
default = {};
description = ''
Attribute set of derivations used to setup the system.
'';
};
nesting.children = pkgs.lib.mkOption {
default = [];
description = ''
Additional configurations to build.
'';
};
};
# This attribute is responsible for creating boot entries for
# child configuration. They are only (directly) accessible
# when the parent configuration is boot default. For example,
@ -77,7 +96,7 @@ let
in {
require = [options];
system.build.system = system;
}

View File

@ -80,15 +80,5 @@ in
};
nesting = {
children = mkOption {
default = [];
description = "
Additional configurations to build.
";
};
};
require = import ../modules/module-list.nix;
}

View File

@ -1,30 +0,0 @@
# this file contains all extendable options originally defined in system.nix
# TODO: split it to make it readable.
{pkgs, config, ...}:
with pkgs.lib;
###### interface
let
option = {
system = {
build = mkOption {
default = {};
description = ''
Attribute set of derivations used to setup the system.
'';
};
};
};
in
###### implementation
{
require = [
option
# config.system.activationScripts
# ../system/activate-configuration.nix
];
}