vim: add option to specify pkgs.vim_configurable (#2307)

This commit is contained in:
arcnmx 2021-10-06 06:56:06 -07:00 committed by GitHub
parent 8bbade4b01
commit 854406680b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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