feat: linux default browser chromium -> firefox

This commit is contained in:
winston 2024-09-15 00:12:17 +02:00
parent ab0d3a9974
commit 4f834dd822
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -6,6 +6,8 @@
}: }:
let let
inherit (pkgs.stdenv) isLinux; inherit (pkgs.stdenv) isLinux;
defaultBrowser = "firefox.desktop";
in in
{ {
config = lib.mkIf config.isGraphical { config = lib.mkIf config.isGraphical {
@ -156,12 +158,12 @@ in
home.packages = lib.mkIf isLinux [ pkgs.mullvad-browser ]; home.packages = lib.mkIf isLinux [ pkgs.mullvad-browser ];
xdg.mimeApps.defaultApplications = { xdg.mimeApps.defaultApplications = lib.genAttrs [
"text/html" = "chromium.desktop"; "text/html"
"x-scheme-handler/http" = "chromium.desktop"; "x-scheme-handler/http"
"x-scheme-handler/https" = "chromium.desktop"; "x-scheme-handler/https"
"x-scheme-handler/about" = "chromium.desktop"; "x-scheme-handler/about"
"x-scheme-handler/unknown" = "chromium.desktop"; "x-scheme-handler/unknown"
}; ] (_: defaultBrowser);
}; };
} }