From 854406680b30f9e64276e89938cdada141ec13d4 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Wed, 6 Oct 2021 06:56:06 -0700 Subject: [PATCH] vim: add option to specify pkgs.vim_configurable (#2307) --- modules/programs/vim.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/programs/vim.nix b/modules/programs/vim.nix index 3325bf225..19c22d13d 100644 --- a/modules/programs/vim.nix +++ b/modules/programs/vim.nix @@ -124,6 +124,13 @@ in { description = "Resulting customized vim package"; readOnly = true; }; + + packageConfigurable = mkOption { + type = types.package; + description = "Configurable vim package"; + default = pkgs.vim_configurable; + defaultText = "pkgs.vim_configurable"; + }; }; }; @@ -135,7 +142,7 @@ in { ${cfg.extraConfig} ''; - vim = pkgs.vim_configurable.customize { + vim = cfg.packageConfigurable.customize { name = "vim"; vimrcConfig = { inherit customRC;