NixOS:Properties: Difference between revisions

imported>Ajs124
removed in 2012
imported>Chuck
The default rank of mkOrder is 1000, not 100, per lib/modules.nix
Line 6: Line 6:
* <code>mkOverride priority template definitions</code>: Currently the same as <code>mkOverrideTemplate</code>.
* <code>mkOverride priority template definitions</code>: Currently the same as <code>mkOverrideTemplate</code>.
* <code>mkDefaultValue definitions</code>: A shortcut notation to define default values (priority level of 1000) inside the configuration.  This is extremely useful to avoid references to properties inside the user configuration while overriding the default value of the option.  Any option define without this property will take precedence over it.
* <code>mkDefaultValue definitions</code>: A shortcut notation to define default values (priority level of 1000) inside the configuration.  This is extremely useful to avoid references to properties inside the user configuration while overriding the default value of the option.  Any option define without this property will take precedence over it.
* <code>mkOrder rank definitions</code>: Add a rank value to definitions.  This is useful for options where some dependences between definitions exist.  A lower rank will add the definitions among the first definitions.  The default rank is 100.
* <code>mkOrder rank definitions</code>: Add a rank value to definitions.  This is useful for options where some dependences between definitions exist.  A lower rank will add the definitions among the first definitions.  The default rank is 1000.
* <code>mkHeader definitions</code>: A shortcut notation to define a rank of 10 with <code>mkOrder</code>.
* <code>mkHeader definitions</code>: A shortcut notation to define a rank of 10 with <code>mkOrder</code>.
* <code>mkFooter definitions</code>: A shortcut notation to define a rank of 1000 with <code>mkOrder</code>.
* <code>mkFooter definitions</code>: A shortcut notation to define a rank of 1000 with <code>mkOrder</code>.