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