dotfiles/modules/home/programs/firefox/default.nix

27 lines
503 B
Nix
Raw Permalink Normal View History

{
config,
lib,
namespace,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.${namespace}.programs.firefox;
in {
options.${namespace}.programs.firefox = {
enable = mkEnableOption "firefox";
};
config = mkIf cfg.enable {
programs.firefox = {
enable = true;
};
xdg.mimeApps.defaultApplications = {
"text/html" = "firefox.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
};
};
}