This commit is contained in:
Sense T 2023-07-04 13:10:43 +08:00
parent 8d0bbfcc33
commit 2799c259f2

View File

@ -1,11 +1,21 @@
{ let
defaultBrowser = "io.gitlab.librewolf-community.desktop";
defaultFileManager = "ranger.desktop";
in {
xdg = { xdg = {
enable = true; enable = true;
mimeApps = { mimeApps = {
enable = true; enable = true;
defaultApplications = { defaultApplications = {
"x-scheme-handler/http" = "io.gitlab.librewolf-community.desktop"; # Default web browser.
"x-scheme-handler/https" = "io.gitlab.librewolf-community.desktop"; "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;
}; };
}; };
}; };