nixos/home/system/mime/default.nix
2025-01-04 18:51:16 +07:00

36 lines
1.2 KiB
Nix

# Mime allows us to configure the default applications for each file type
{
xdg.mimeApps = {
enable = true;
defaultApplications = {
"text/markdown" = "neovide.desktop";
"text/plain" = "neovide.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" = "imv.desktop";
"image/jpeg" = "imv.desktop";
"image/jpg" = "imv.desktop";
"image/webp" = "imv.desktop";
"image/gif" = "imv.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
"text/html" = "firefox.desktop";
"text/csv" = "neovide.desktop";
"application/pdf" = "org.pwmt.zathura.desktop";
"inode/directory" = "Thunar.desktop";
};
};
}