nixpkgs/system/system-options.nix
Eelco Dolstra 68c3132f46 * Move the activation scripts to the appropriate module.
svn path=/nixos/branches/modular-nixos/; revision=15745
2009-05-27 09:40:55 +00:00

49 lines
937 B
Nix

# 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.
'';
};
shell = mkOption {
default = "/var/run/current-system/sw/bin/bash";
description = ''
This option defines the path to the Bash shell. It should
generally not be overriden.
'';
merge = list:
assert list != [] && builtins.tail list == [];
builtins.head list;
};
};
};
in
###### implementation
{
require = [
option
# config.system.activationScripts
# ../system/activate-configuration.nix
];
system = {
build = {
binsh = pkgs.bashInteractive;
};
};
}