Declaration: Difference between revisions

imported>Fricklerhandwerk
add category: NixOS
imported>Mic92
string -> str
Line 42: Line 42:
with lib;
with lib;
services.fooBar.option = mkOption {
services.fooBar.option = mkOption {
   type = with types; uniq string;
   type = with types; uniq str;
   description = "
   description = "
     ...
     ...
Line 56: Line 56:
* <code>bool</code>: A Boolean useful for enable flags.  The merge function is a logical OR between all definitions.
* <code>bool</code>: A Boolean useful for enable flags.  The merge function is a logical OR between all definitions.
* <code>int</code>: An Integer.
* <code>int</code>: An Integer.
* <code>string</code>: A string where all definitions are concatenated.
* <code>str</code>: A string where all definitions are concatenated.
* <code>envVar</code>: A string where all definitions are concatenated with a colon between all definitions.
* <code>envVar</code>: A string where all definitions are concatenated with a colon between all definitions.
* <code>attrs</code>: An attribute set. (you should prefer <code>attrsOf inferred</code>)
* <code>attrs</code>: An attribute set. (you should prefer <code>attrsOf inferred</code>)