modules/build: rename package to toplevel
This commit is contained in:
parent
a2a49ca722
commit
ea47c7bbb8
1 changed files with 6 additions and 3 deletions
|
@ -6,6 +6,10 @@ let
|
||||||
cfg = config.build.neovim;
|
cfg = config.build.neovim;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
(lib.mkRenamedOptionModule [ "build" "neovim" "package" ] [ "build" "neovim" "toplevel" ])
|
||||||
|
];
|
||||||
|
|
||||||
options.build.neovim = with lib; with types; {
|
options.build.neovim = with lib; with types; {
|
||||||
luaConfig = mkOption {
|
luaConfig = mkOption {
|
||||||
type = lines;
|
type = lines;
|
||||||
|
@ -20,9 +24,8 @@ in
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
internal = true;
|
internal = true;
|
||||||
};
|
};
|
||||||
package = mkOption {
|
toplevel = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
readOnly = true;
|
|
||||||
internal = true;
|
internal = true;
|
||||||
description = ''
|
description = ''
|
||||||
Neovim editor derivation with plugins and configurations.
|
Neovim editor derivation with plugins and configurations.
|
||||||
|
@ -54,7 +57,7 @@ in
|
||||||
|
|
||||||
plugins = lib.mapAttrsToList (k: v: v.package) config.plugin;
|
plugins = lib.mapAttrsToList (k: v: v.package) config.plugin;
|
||||||
|
|
||||||
package = pkgs.wrapNeovim pkgs.neovim-unwrapped {
|
toplevel = pkgs.wrapNeovim pkgs.neovim-unwrapped {
|
||||||
viAlias = false;
|
viAlias = false;
|
||||||
vimAlias = false;
|
vimAlias = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue