Files
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
..
2021-01-25 19:25:50 +01:00
2021-11-15 07:03:41 -05:00
2021-01-26 10:57:07 +07:00
2021-08-14 14:46:00 -05:00
2021-10-15 23:10:34 +02:00
2021-04-02 19:20:23 +08:00
2020-06-04 13:43:10 +02:00
2021-11-15 07:03:41 -05:00
2021-09-17 10:03:00 +00:00