mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
vim: add option to specify pkgs.vim_configurable (#2307)
This commit is contained in:
parent
8bbade4b01
commit
854406680b
1 changed files with 8 additions and 1 deletions
|
@ -124,6 +124,13 @@ in {
|
||||||
description = "Resulting customized vim package";
|
description = "Resulting customized vim package";
|
||||||
readOnly = true;
|
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}
|
${cfg.extraConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
vim = pkgs.vim_configurable.customize {
|
vim = cfg.packageConfigurable.customize {
|
||||||
name = "vim";
|
name = "vim";
|
||||||
vimrcConfig = {
|
vimrcConfig = {
|
||||||
inherit customRC;
|
inherit customRC;
|
||||||
|
|
Loading…
Reference in a new issue