modules/build: rename package to toplevel

This commit is contained in:
Dmitriy Pleshevskiy 2024-05-05 17:53:47 +03:00
parent a2a49ca722
commit ea47c7bbb8
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -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;