mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05:00
helpers: add mkCompositeOptions (#223)
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user