* More cleanup.
svn path=/nixos/branches/modular-nixos/; revision=15768
This commit is contained in:
parent
3c84d56273
commit
29611e49fd
@ -3,7 +3,6 @@
|
|||||||
../system/assertion.nix
|
../system/assertion.nix
|
||||||
../system/nixos-environment.nix
|
../system/nixos-environment.nix
|
||||||
../system/nixos-installer.nix
|
../system/nixos-installer.nix
|
||||||
../system/system-options.nix
|
|
||||||
../upstart-jobs/cron/locate.nix
|
../upstart-jobs/cron/locate.nix
|
||||||
../upstart-jobs/filesystems.nix
|
../upstart-jobs/filesystems.nix
|
||||||
../upstart-jobs/guest-users.nix
|
../upstart-jobs/guest-users.nix
|
||||||
|
@ -2,6 +2,25 @@
|
|||||||
|
|
||||||
let
|
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
|
# This attribute is responsible for creating boot entries for
|
||||||
# child configuration. They are only (directly) accessible
|
# child configuration. They are only (directly) accessible
|
||||||
# when the parent configuration is boot default. For example,
|
# when the parent configuration is boot default. For example,
|
||||||
@ -77,7 +96,7 @@ let
|
|||||||
|
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
require = [options];
|
||||||
|
|
||||||
system.build.system = system;
|
system.build.system = system;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -80,15 +80,5 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
nesting = {
|
|
||||||
children = mkOption {
|
|
||||||
default = [];
|
|
||||||
description = "
|
|
||||||
Additional configurations to build.
|
|
||||||
";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
require = import ../modules/module-list.nix;
|
require = import ../modules/module-list.nix;
|
||||||
}
|
}
|
||||||
|
@ -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
|
|
||||||
];
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user