exclude gui support from vim when not needed

This commit is contained in:
Chris Dombroski 2024-11-08 14:20:01 -05:00
parent 8d02e5f062
commit 93f794b07d

View file

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