mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-24 18:19:11 +00:00
flake-parts/setups: refactor Nixvim instance option module
This commit is contained in:
parent
ee285c2004
commit
1c08463334
@ -1,32 +1,22 @@
|
|||||||
{ lib, ... }: {
|
{ lib, ... }: {
|
||||||
options.nixvim = lib.mkOption {
|
options.nixvim = {
|
||||||
type = lib.types.submodule {
|
instance = lib.mkOption {
|
||||||
options = {
|
type = with lib.types; nullOr str;
|
||||||
instance = lib.mkOption {
|
default = null;
|
||||||
type = with lib.types; nullOr str;
|
example = "fiesta";
|
||||||
default = null;
|
description = ''
|
||||||
example = "fiesta";
|
The name of the NixVim configuration from
|
||||||
description = ''
|
{option}`setups.nixvim.configs.<name>` to be included as part
|
||||||
The name of the NixVim configuration from
|
of the NixOS system.
|
||||||
{option}`setups.nixvim.configs.<name>` to be included as part
|
'';
|
||||||
of the NixOS system.
|
};
|
||||||
'';
|
|
||||||
};
|
additionalModules = lib.mkOption {
|
||||||
|
type = with lib.types; listOf raw;
|
||||||
additionalModules = lib.mkOption {
|
default = [ ];
|
||||||
type = with lib.types; listOf raw;
|
description = ''
|
||||||
default = [ ];
|
A list of additional NixVim modules to be included.
|
||||||
description = ''
|
'';
|
||||||
A list of additional NixVim modules to be included.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
default = { };
|
|
||||||
description = ''
|
|
||||||
An optional NixVim inclusion for the environment. Take note, this
|
|
||||||
will override whatever Neovim configuration from your environment so
|
|
||||||
be sure to only use this if you have none.
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user