[desktop] Set Librewolf as the default browser.

This commit is contained in:
2025-06-08 20:57:13 -07:00
parent 0a64c5cd4b
commit 1d94f2574c
2 changed files with 13 additions and 1 deletions

View File

@@ -83,4 +83,16 @@
platformTheme.name = "adwaita";
style.name = "adwaita-dark";
};
# Default apps
xdg.mime.enable = true;
xdg.mimeApps.defaultApplications = {
"text/html" = [ "librewolf.desktop" ];
"default-web-browser" = [ "librewolf.desktop" ];
"x-scheme-handler/http" = [ "librewolf.desktop" ];
"x-scheme-handler/https" = [ "librewolf.desktop" ];
"x-scheme-handler/about" = [ "librewolf.desktop" ];
"x-scheme-handler/unknown" = [ "librewolf.desktop" ];
};
environment.sessionVariables.DEFAULT_BROWSER = "${pkgs.librewolf}/bin/librewolf";
}