Add vim-alacritty-desktop.nix
This commit is contained in:
parent
7807182d18
commit
70f4f215c0
2 changed files with 18 additions and 0 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
../../modules/home-manager/git.nix
|
../../modules/home-manager/git.nix
|
||||||
../../modules/home-manager/ssh.nix
|
../../modules/home-manager/ssh.nix
|
||||||
../../modules/home-manager/bash.nix
|
../../modules/home-manager/bash.nix
|
||||||
|
../../modules/home-manager/vim-alacritty-desktop.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# This value determines the Home Manager release that your configuration is
|
# This value determines the Home Manager release that your configuration is
|
||||||
|
|
|
||||||
17
modules/home-manager/vim-alacritty-desktop.nix
Normal file
17
modules/home-manager/vim-alacritty-desktop.nix
Normal file
|
|
@ -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
|
||||||
|
'';
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue