mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
helpers: add mkCompositeOptions (#223)
This commit is contained in:
parent
2c333c86d0
commit
f3ec786baa
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,9 @@ with lib; rec {
|
|||
|
||||
mkIfNonNull = c: mkIf (!isNull c) c;
|
||||
|
||||
mkCompositeOptions = desc: options:
|
||||
mkNullOrOption (types.submodule {inherit options;}) desc;
|
||||
|
||||
defaultNullOpts = rec {
|
||||
mkNullable = type: default: desc:
|
||||
mkNullOrOption type (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue