nixpkgs/lib
Taeer Bar-Yam 0bef0c38f7 lib.modules: add mkDerivedConfig
mkDerivedConfig : Option a -> (a -> Definition b) -> Definition b

Create config definitions with the same priority as the definition of another option.
This should be used for option definitions where one option sets the value of another as a convenience.
For instance a config file could be set with a `text` or `source` option, where text translates to a `source`
value using `mkDerivedConfig options.text (pkgs.writeText "filename.conf")`.

It takes care of setting the right priority using `mkOverride`.
2021-11-15 07:03:41 -05:00
..
systems lib/systems: add x86_64-darwin hostPlatform 2021-11-10 11:37:34 -08:00
tests
asserts.nix
attrsets.nix
cli.nix
customisation.nix
debug.nix
default.nix lib.modules: add mkDerivedConfig 2021-11-15 07:03:41 -05:00
deprecated.nix
fetchers.nix
filesystem.nix
fixed-points.nix
flake.nix
generators.nix
kernel.nix
licenses.nix
lists.nix
meta.nix
minver.nix
modules.nix lib.modules: add mkDerivedConfig 2021-11-15 07:03:41 -05:00
options.nix
sources.nix
strings-with-deps.nix
strings.nix
trivial.nix
types.nix
versions.nix
zip-int-bits.nix