mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-30 00:26:45 +00:00
feat: add lib function to quickly mkOption mappings
This commit is contained in:
parent
e372fb1ccc
commit
475acf90cb
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
mkMappingOption = description: default:
|
||||
self.mkOption {
|
||||
type = self.types.nullOr self.types.str;
|
||||
inherit default description;
|
||||
};
|
||||
|
||||
# For forward compatibility.
|
||||
literalExpression = super.literalExpression or super.literalExample;
|
||||
literalDocBook = super.literalDocBook or super.literalExample;
|
||||
|
|
Loading…
Reference in a new issue