fix: only setup desktop entry for gui

This commit is contained in:
Noah Masur 2024-10-19 08:45:26 -04:00
parent d806bd7f56
commit 33868c1add
No known key found for this signature in database

View File

@ -50,7 +50,7 @@ in
# Create a desktop option for launching Neovim from a file manager
# (Requires launching the terminal and then executing Neovim)
xdg.desktopEntries.nvim = lib.mkIf pkgs.stdenv.isLinux {
xdg.desktopEntries.nvim = lib.mkIf (pkgs.stdenv.isLinux && config.gui.enable) {
name = "Neovim wrapper";
exec = "${config.home-manager.users.${config.user}.programs.rofi.terminal} nvim %F";
mimeType = [