home/programs/xdg: set default mime apps
This commit is contained in:
parent
fd0fbad80d
commit
7f8ae63483
1 changed files with 24 additions and 0 deletions
24
home/programs/xdg.nix
Normal file
24
home/programs/xdg.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{config, ...}: {
|
||||
xdg = {
|
||||
enable = true;
|
||||
cacheHome = config.home.homeDirectory + "/.local/cache";
|
||||
|
||||
mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"default-web-browser" = ["firefox.desktop"];
|
||||
"text/html" = ["firefox.desktop"];
|
||||
"x-scheme-handler/http" = ["firefox.desktop"];
|
||||
"x-scheme-handler/https" = ["firefox.desktop"];
|
||||
"x-scheme-handler/about" = ["firefox.desktop"];
|
||||
"x-scheme-handler/unknown" = ["firefox.desktop"];
|
||||
"x-scheme-handler/chrome" = ["chromium-browser.desktop"];
|
||||
"inode/directory" = ["yazi.desktop"];
|
||||
"image/png" = ["org.gnome.Loupe.desktop"];
|
||||
"image/svg" = [" org.gnome.Loupe.desktop"];
|
||||
"image/jpeg" = ["org.gnome.Loupe.desktop"];
|
||||
"image/gif" = [" org.gnome.Loupe.desktop"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue