From 93f794b07db3a94cf516f58d31b1eafa81128efb Mon Sep 17 00:00:00 2001 From: Chris Dombroski Date: Fri, 8 Nov 2024 14:20:01 -0500 Subject: [PATCH] exclude gui support from vim when not needed --- home-modules/vim.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home-modules/vim.nix b/home-modules/vim.nix index 064504e..fee4053 100644 --- a/home-modules/vim.nix +++ b/home-modules/vim.nix @@ -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