mimetypes
This commit is contained in:
@@ -56,4 +56,20 @@ in
|
|||||||
};
|
};
|
||||||
home.packages = with pkgs; [ nixfmt-rfc-style ]; # nixd config option to set nixpkgs-fmt should work, but it doesn't
|
home.packages = with pkgs; [ nixfmt-rfc-style ]; # nixd config option to set nixpkgs-fmt should work, but it doesn't
|
||||||
programs.nixvim = merged;
|
programs.nixvim = merged;
|
||||||
|
xdg.desktopEntries = {
|
||||||
|
neovim = {
|
||||||
|
name = "Neovim";
|
||||||
|
exec = "kitty nvim";
|
||||||
|
icon = "nvim";
|
||||||
|
type = "Application";
|
||||||
|
categories = [
|
||||||
|
"Utility"
|
||||||
|
"TextEditor"
|
||||||
|
];
|
||||||
|
mimeType = [
|
||||||
|
"text/markdown"
|
||||||
|
"text/plain"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ in
|
|||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
#uw-ttyp0
|
#uw-ttyp0
|
||||||
#corefonts
|
#corefonts
|
||||||
#nerd-fonts.noto
|
#nerd-fonts.noto
|
||||||
noto-fonts
|
noto-fonts
|
||||||
nerd-fonts.hack
|
nerd-fonts.hack
|
||||||
#noto-fonts
|
#noto-fonts
|
||||||
@@ -86,5 +86,50 @@ in
|
|||||||
adwaita-icon-theme
|
adwaita-icon-theme
|
||||||
zenity
|
zenity
|
||||||
];
|
];
|
||||||
|
xdg.terminal-exec = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
default = [
|
||||||
|
"kitty.desktop"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
xdg.mime =
|
||||||
|
let
|
||||||
|
mkAssociation =
|
||||||
|
desktop: mimeTypes:
|
||||||
|
(map (name: {
|
||||||
|
inherit name;
|
||||||
|
value = desktop;
|
||||||
|
}) mimeTypes)
|
||||||
|
|> builtins.listToAttrs;
|
||||||
|
associations =
|
||||||
|
mkAssociation "firefox.desktop" [
|
||||||
|
"application/x-extension-shtml"
|
||||||
|
"application/x-extension-xhtml"
|
||||||
|
"application/x-extension-html"
|
||||||
|
"application/x-extension-xht"
|
||||||
|
"application/x-extension-htm"
|
||||||
|
"x-scheme-handler/unknown"
|
||||||
|
"x-scheme-handler/mailto"
|
||||||
|
"x-scheme-handler/chrome"
|
||||||
|
"x-scheme-handler/about"
|
||||||
|
"x-scheme-handler/https"
|
||||||
|
"x-scheme-handler/http"
|
||||||
|
"application/xhtml+xml"
|
||||||
|
"application/pdf"
|
||||||
|
"text/html"
|
||||||
|
]
|
||||||
|
// mkAssociation "neovim.desktop" [
|
||||||
|
"application/json"
|
||||||
|
"text/markdown"
|
||||||
|
"text/plain"
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
enable = true;
|
||||||
|
addedAssociations = associations;
|
||||||
|
defaultApplications = associations;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user