dotfiles/modules/nixos/apps/firefox/default.nix

28 lines
622 B
Nix
Raw Normal View History

2023-03-12 03:59:11 +00:00
{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.aa.apps.firefox;
in {
options.aa.apps.firefox = with types; {
enable = mkEnableOption "firefox";
};
2023-12-07 03:27:47 +00:00
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [firefox];
aa.home.extraOptions = {
xdg.mimeApps.defaultApplications = {
"text/html" = "firefox.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
"x-scheme-handler/about" = "firefox.desktop";
"x-scheme-handler/unknown" = "firefox.desktop";
};
};
};
2023-03-12 03:59:11 +00:00
}