From ea47c7bbb88e01c0d788faadd0512be86ed1cff1 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sun, 5 May 2024 17:53:47 +0300 Subject: [PATCH] modules/build: rename package to toplevel --- modules/build/neovim.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/build/neovim.nix b/modules/build/neovim.nix index af58769..9634921 100644 --- a/modules/build/neovim.nix +++ b/modules/build/neovim.nix @@ -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;