Serenity/home/desktop/xdg-mime.nix
2024-12-12 02:05:56 +10:00

32 lines
1.1 KiB
Nix
Executable file

# Mime allows us to configure the default applications for each file type
{
xdg.mimeApps = {
defaultApplications = {
"text/markdown" = "nvim.desktop";
"text/plain" = "nvim.desktop";
"text/x-shellscript" = "nvim.desktop";
"text/x-python" = "nvim.desktop";
"text/x-go" = "nvim.desktop";
"text/css" = "nvim.desktop";
"text/javascript" = "nvim.desktop";
"text/x-c" = "nvim.desktop";
"text/x-c++" = "nvim.desktop";
"text/x-java" = "nvim.desktop";
"text/x-rust" = "nvim.desktop";
"text/x-yaml" = "nvim.desktop";
"text/x-toml" = "nvim.desktop";
"text/x-dockerfile" = "nvim.desktop";
"text/x-xml" = "nvim.desktop";
"text/x-php" = "nvim.desktop";
"image/png" = "swayimg.desktop";
"image/jpeg" = "swayimg.desktop";
"image/jpg" = "swayimg.desktop";
"image/webp" = "swayimg.desktop";
"image/gif" = "swayimg.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
"text/html" = "firefox.desktop";
"application/pdf" = "firefox.desktop";
};
};
}