2024-10-26 18:33:47 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
2024-10-27 11:23:20 +00:00
|
|
|
config,
|
2024-10-26 18:33:47 +00:00
|
|
|
...
|
|
|
|
}: let
|
2023-10-19 07:34:06 +00:00
|
|
|
firefoxAddons = import ./addons.nix pkgs lib;
|
2023-10-08 14:57:57 +00:00
|
|
|
firefoxSettings = {
|
|
|
|
"browser.aboutConfig.showWarning" = false;
|
|
|
|
"browser.toolbars.bookmarks.visibility" = "always";
|
|
|
|
"browser.tabs.firefox-view" = false;
|
|
|
|
"browser.shell.checkDefaultBrowser" = false;
|
2023-10-13 08:08:32 +00:00
|
|
|
"browser.translations.automaticallyPopup" = false;
|
|
|
|
"signon.rememberSignons" = false;
|
2023-10-17 06:44:33 +00:00
|
|
|
"media.webspeech.synth.dont_notify_on_error" = true;
|
2023-10-18 18:17:03 +00:00
|
|
|
"browser.gesture.swipe.left" = false;
|
|
|
|
"browser.gesture.swipe.right" = false;
|
2024-05-03 20:31:15 +00:00
|
|
|
"browser.newtabpage.activity-stream.showSponsored" = false;
|
|
|
|
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
2023-10-08 14:57:57 +00:00
|
|
|
};
|
2024-10-27 11:23:20 +00:00
|
|
|
cfg = config.pim.firefox;
|
2024-10-26 18:33:47 +00:00
|
|
|
in {
|
2024-10-27 11:23:20 +00:00
|
|
|
options.pim.firefox.enable = lib.mkEnableOption "firefox";
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2023-10-08 14:57:57 +00:00
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
2023-11-05 17:49:51 +00:00
|
|
|
profiles = {
|
2023-10-08 14:57:57 +00:00
|
|
|
default = {
|
|
|
|
id = 0;
|
|
|
|
isDefault = true;
|
|
|
|
settings = firefoxSettings;
|
2024-05-19 11:01:27 +00:00
|
|
|
extensions = firefoxAddons;
|
2023-10-08 14:57:57 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|