mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
5b7f7d2de1
be reused, e.g. for building the CD/DVD. svn path=/nixos/branches/modular-nixos/; revision=15744
24 lines
490 B
Nix
24 lines
490 B
Nix
# 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
|
|
(import ../system/options.nix)
|
|
];
|
|
|
|
config =
|
|
pkgs.lib.fixOptionSets
|
|
pkgs.lib.mergeOptionSets
|
|
pkgs configComponents;
|
|
|
|
optionDeclarations =
|
|
pkgs.lib.fixOptionSetsFun
|
|
pkgs.lib.filterOptionSets
|
|
pkgs configComponents
|
|
config;
|
|
}
|