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 = {
enable = true;
mimeApps = {
enable = true;
defaultApplications = {
"x-scheme-handler/http" = "io.gitlab.librewolf-community.desktop";
"x-scheme-handler/https" = "io.gitlab.librewolf-community.desktop";
# 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;
};
};
};