mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 01:45:37 +00:00
fix: only setup desktop entry for gui
This commit is contained in:
parent
d806bd7f56
commit
33868c1add
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user