This repository has been archived on 2023-07-23. You can view files and clone it, but cannot push or open issues or pull requests.
gpd-configurations/home/user/xdg.nix

31 lines
1006 B
Nix
Raw Normal View History

2023-07-04 05:10:43 +00:00
let
defaultBrowser = "io.gitlab.librewolf-community.desktop";
defaultFileManager = "ranger.desktop";
2023-07-04 05:34:52 +00:00
defaultTerminal = "kitty.desktop";
2023-07-04 05:10:43 +00:00
in {
2023-07-04 04:43:04 +00:00
xdg = {
enable = true;
2023-07-04 04:49:42 +00:00
mimeApps = {
enable = true;
defaultApplications = {
2023-07-04 05:10:43 +00:00
# Default web browser.
"text/html" = defaultBrowser;
"x-scheme-handler/http" = defaultBrowser;
"x-scheme-handler/https" = defaultBrowser;
"x-scheme-handler/about" = defaultBrowser;
"x-scheme-handler/unknown" = defaultBrowser;
# Default file manager.
"inode/directory" = defaultFileManager;
2023-07-04 05:34:52 +00:00
# Image
"image/*" = defaultTerminal;
# Default terminal
"application/x-sh" = defaultTerminal;
"application/x-shellscript" = defaultTerminal;
"x-scheme-handler/ssh" = defaultTerminal;
2023-07-04 04:49:42 +00:00
};
2023-07-04 04:43:04 +00:00
};
};
}