From 70f4f215c07ee582329c96e33c31d02e90f5e3af Mon Sep 17 00:00:00 2001 From: cubernetes Date: Fri, 16 Oct 2026 01:42:42 +0200 Subject: [PATCH] Add vim-alacritty-desktop.nix --- hosts/fw/home.nix | 1 + modules/home-manager/vim-alacritty-desktop.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 modules/home-manager/vim-alacritty-desktop.nix diff --git a/hosts/fw/home.nix b/hosts/fw/home.nix index 7d47336..ae1dce0 100644 --- a/hosts/fw/home.nix +++ b/hosts/fw/home.nix @@ -10,6 +10,7 @@ ../../modules/home-manager/git.nix ../../modules/home-manager/ssh.nix ../../modules/home-manager/bash.nix + ../../modules/home-manager/vim-alacritty-desktop.nix ]; # This value determines the Home Manager release that your configuration is diff --git a/modules/home-manager/vim-alacritty-desktop.nix b/modules/home-manager/vim-alacritty-desktop.nix new file mode 100644 index 0000000..ca5c365 --- /dev/null +++ b/modules/home-manager/vim-alacritty-desktop.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: + +{ + xdg.dataFile."applications/vim.desktop".text = '' + [Desktop Entry] + Type=Application + Name=Vim + GenericName=Text Editor + Comment=Edit files with Vim in Alacritty + Exec=${pkgs.alacritty}/bin/alacritty -e ${pkgs.vim}/bin/vim %F + Terminal=false + Icon=vim + Categories=Utility;TextEditor; + MimeType=application/json;application/x-docbook+xml;text/x-shellscript;application/x-shellscript;application/x-yaml;application/x-zerosize;text/markdown;text/plain;text/x-cmake;text/x-python;text/x-script.python; + NoDisplay=true + ''; +}