nixos/vim: configurable vim package (#100132)
This commit is contained in:
parent
0673b245d2
commit
17bcc043f0
1 changed files with 12 additions and 2 deletions
|
@ -14,10 +14,20 @@ in {
|
|||
using the EDITOR environment variable.
|
||||
'';
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vim;
|
||||
defaultText = "pkgs.vim";
|
||||
example = "pkgs.vimHugeX";
|
||||
description = ''
|
||||
vim package to use.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.defaultEditor {
|
||||
environment.systemPackages = [ pkgs.vim ];
|
||||
environment.variables = { EDITOR = mkOverride 900 "vim"; };
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
environment.variables = { EDITOR = mkOverride 900 "vim"; };
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue