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;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(lib.mkRenamedOptionModule [ "build" "neovim" "package" ] [ "build" "neovim" "toplevel" ])
|
||||
];
|
||||
|
||||
options.build.neovim = with lib; with types; {
|
||||
luaConfig = mkOption {
|
||||
type = lines;
|
||||
|
@ -20,9 +24,8 @@ in
|
|||
readOnly = true;
|
||||
internal = true;
|
||||
};
|
||||
package = mkOption {
|
||||
toplevel = mkOption {
|
||||
type = types.package;
|
||||
readOnly = true;
|
||||
internal = true;
|
||||
description = ''
|
||||
Neovim editor derivation with plugins and configurations.
|
||||
|
@ -54,7 +57,7 @@ in
|
|||
|
||||
plugins = lib.mapAttrsToList (k: v: v.package) config.plugin;
|
||||
|
||||
package = pkgs.wrapNeovim pkgs.neovim-unwrapped {
|
||||
toplevel = pkgs.wrapNeovim pkgs.neovim-unwrapped {
|
||||
viAlias = false;
|
||||
vimAlias = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue