I'm not wed to the outPath values I chose, other options are probably
valid there too. It would be nice if we could track which file each
merged value came from as well.
Signed-off-by: Shea Levy <shea@shealevy.com>
the manual. While it's a useful feature, it has the unfortunate
side-effect of causing the manual to be rebuilt every time the user
adds an option definition to any module (including
configuration.nix), and rebuilding the manual is rather slow.
svn path=/nixpkgs/trunk/; revision=23110
overriden. Some defaults should not be evaluated because they cause
unnecessary evaluation or might cause evaluation errors
(e.g. assertions). For instance, the value of the
`boot.kernelPackages' option is an attribute set. Some packages in
that set might not evaluate (e.g. AUFS2 on kernels that don't have
the AUFS2 patch), and in any case it slows down nixos-rebuild to
evaluate lots of packages that are not actually used in the
configuration.
svn path=/nixpkgs/trunk/; revision=22043
NixOS manual and manpages, remove all derivation attributes except
the `name' attribute. This cuts the size of `options.xml' from 7.0
MiB to 473 KiB, and more importantly, cuts evaluation time of the
system derivation from 1.63s to 1.10s on my laptop (a 32%
improvement).
svn path=/nixpkgs/trunk/; revision=21739
give it as argument to each sub-module.
With the type "types.attrsOf types.optionSet", you will obtain the name of
the attribute in which the sub-modules are contained.
svn path=/nixpkgs/trunk/; revision=17669
insert definitions from an external location. As opposed to other
defintions, these definitions are always embedded into a list which allow
to add multiple definitions with one module.
!!! This feature _should not_ be used as a new mean to define options.
svn path=/nixpkgs/trunk/; revision=17481
- Remove handleOptionSets which used option declarations & definitions
in the same set.
- Add a traversal of modules where "config" and "options" are traverse at
the same time.
This allow to have accruate error messages with the incriminated files
playing a role in the error.
This system add a new restriction compare to the previous system:
- A module with no structure (option definitions & option declarations
& require) should not contain any option declarations. If such module
exists you must convert it to the following form:
{ imports = <content of the require attribute>;
options = <set of option declarations>;
config = <set of option definitions>;
}
svn path=/nixpkgs/trunk/; revision=17163
- well named,
- capable to handle the proposal of Eelco Dolstra { imports= [..]; options = {}; config = {}; } in addition to the current { require = [..]; .. } syntax.
svn path=/nixpkgs/trunk/; revision=16192
- Do not eval properties on option declarations.
-> mkIf does not mask option declarations if the condition is evaluated to false.
svn path=/nixpkgs/trunk/; revision=16043
Use the option name computed by "handleOptionSets" instead of
computing it a second time. Handle option containing option sets.
svn path=/nixpkgs/trunk/; revision=15937
Remove attribute set comparison. Imported attribute sets
are traverse assuming that no duplicate could exists.
svn path=/nixpkgs/trunk/; revision=15659