2009-05-27 09:16:56 +00:00
|
|
|
# From an end-user configuration file (`configuration'), build a NixOS
|
|
|
|
# configuration object (`config') from which we can retrieve option
|
|
|
|
# values.
|
|
|
|
|
|
|
|
{configuration, pkgs}:
|
|
|
|
|
|
|
|
rec {
|
|
|
|
configComponents = [
|
|
|
|
configuration
|
2009-05-28 16:03:48 +00:00
|
|
|
{ require = import ../modules/module-list.nix; }
|
2009-05-27 09:16:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
config =
|
|
|
|
pkgs.lib.fixOptionSets
|
|
|
|
pkgs.lib.mergeOptionSets
|
|
|
|
pkgs configComponents;
|
|
|
|
|
|
|
|
optionDeclarations =
|
|
|
|
pkgs.lib.fixOptionSetsFun
|
|
|
|
pkgs.lib.filterOptionSets
|
|
|
|
pkgs configComponents
|
|
|
|
config;
|
|
|
|
}
|