diff --git a/nix/homeModules/common/firefox.nix b/nix/homeModules/common/firefox.nix index 81e7b1bf..03c7b8cd 100644 --- a/nix/homeModules/common/firefox.nix +++ b/nix/homeModules/common/firefox.nix @@ -1,5 +1,12 @@ -{pkgs, ...}: let +{ + pkgs, + config, + lib, + ... +}: let inherit (pkgs) nur; + + cfg = config.programs.firefox; in { programs.firefox = { # https://mozilla.github.io/policy-templates @@ -87,4 +94,14 @@ in { ]; }; }; + + xdg.mimeApps = lib.mkIf cfg.enable { + enable = true; + associations.added = { + "text/html" = ["firefox.desktop"]; + }; + defaultApplications = { + "text/html" = ["firefox.desktop"]; + }; + }; }