diff --git a/modules/nvim-lazy/default.nix b/modules/nvim-lazy/default.nix index a8c09c5..59c402d 100644 --- a/modules/nvim-lazy/default.nix +++ b/modules/nvim-lazy/default.nix @@ -1,4 +1,4 @@ -{ lib, ... }: +{ lib, pkgs, ... }: let mkOption = lib.mkOption; types = lib.types; @@ -207,6 +207,11 @@ in default = false; description = ''If set to true nvim will be installed with the plugins defined in programs.nvim-lazy.plugins.''; }; + package = mkOption { + type = types.package; + default = pkgs.neovim-unwrapped; + description = ''The neovim-unwrapped package to use.''; + }; luaRcContent = mkOption { type = types.str; default = ""; diff --git a/modules/nvim-lazy/homeManager.nix b/modules/nvim-lazy/homeManager.nix index 58fc1eb..09b58db 100644 --- a/modules/nvim-lazy/homeManager.nix +++ b/modules/nvim-lazy/homeManager.nix @@ -14,7 +14,9 @@ in config = (lib.mkIf cfg.enable) { _module.check = lib.mkDefault false; home.packages = [ - (wrapNeovimLazy pkgs.neovim-unwrapped { inherit (cfg) luaRcContent lazyConfig lazyPlugins; }) + (wrapNeovimLazy cfg.package { + inherit (cfg) luaRcContent lazyConfig lazyPlugins; + }) ]; }; } diff --git a/modules/nvim-lazy/nixosModule.nix b/modules/nvim-lazy/nixosModule.nix index acc417a..41ec6e6 100644 --- a/modules/nvim-lazy/nixosModule.nix +++ b/modules/nvim-lazy/nixosModule.nix @@ -14,7 +14,9 @@ in config = (lib.mkIf cfg.enable) { _module.check = lib.mkDefault false; environment.systemPackages = [ - (wrapNeovimLazy pkgs.neovim-unwrapped { inherit (cfg) luaRcContent lazyConfig lazyPlugins; }) + (wrapNeovimLazy cfg.package { + inherit (cfg) luaRcContent lazyConfig lazyPlugins; + }) ]; }; }