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 = {
enable = true;
defaultEditor = true;
packageConfigurable = pkgs.vim-full.override {
guiSupport = if osConfig.services.displayManager.enable then "gtk3" else "none";
};
plugins = builtins.attrValues {
inherit (pkgs.vimPlugins)
vim-sensible