exclude gui support from vim when not needed
This commit is contained in:
parent
8d02e5f062
commit
93f794b07d
1 changed files with 4 additions and 1 deletions
|
@ -1,8 +1,11 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, osConfig, ... }:
|
||||||
{
|
{
|
||||||
programs.vim = {
|
programs.vim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
|
packageConfigurable = pkgs.vim-full.override {
|
||||||
|
guiSupport = if osConfig.services.displayManager.enable then "gtk3" else "none";
|
||||||
|
};
|
||||||
plugins = builtins.attrValues {
|
plugins = builtins.attrValues {
|
||||||
inherit (pkgs.vimPlugins)
|
inherit (pkgs.vimPlugins)
|
||||||
vim-sensible
|
vim-sensible
|
||||||
|
|
Loading…
Reference in a new issue