2024-08-16 06:22:14 +02:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
firefox-addons,
|
|
|
|
phone,
|
|
|
|
...
|
|
|
|
}:
|
2024-05-26 11:39:55 +02:00
|
|
|
|
2024-08-13 23:13:47 +02:00
|
|
|
let
|
2024-08-16 06:22:14 +02:00
|
|
|
inherit (lib) mkIf;
|
|
|
|
|
2024-08-25 21:38:05 +02:00
|
|
|
friendlyfox = pkgs.callPackage ../packages/friendlyfox.nix { };
|
2024-08-13 23:13:47 +02:00
|
|
|
in
|
2023-06-17 02:15:45 +02:00
|
|
|
{
|
|
|
|
programs.librewolf = {
|
|
|
|
enable = true;
|
|
|
|
|
2024-08-07 22:32:53 +02:00
|
|
|
package = pkgs.librewolf.override { cfg.speechSynthesisSupport = false; };
|
2024-05-26 11:39:55 +02:00
|
|
|
|
2024-08-13 22:24:10 +02:00
|
|
|
profiles.default = {
|
2024-08-16 05:38:11 +02:00
|
|
|
extensions = with firefox-addons.packages.${pkgs.system}; [
|
2024-08-16 06:24:00 +02:00
|
|
|
ublock-origin
|
2024-08-16 05:38:11 +02:00
|
|
|
yomitan
|
|
|
|
];
|
|
|
|
|
2024-08-13 22:24:10 +02:00
|
|
|
search = {
|
|
|
|
force = true;
|
|
|
|
default = "Mullvad";
|
|
|
|
privateDefault = "Mullvad";
|
|
|
|
|
|
|
|
engines = {
|
|
|
|
Mullvad = {
|
2024-08-15 17:22:07 +02:00
|
|
|
urls = [ { template = "https://leta.mullvad.net/?q={searchTerms}"; } ];
|
2024-08-13 22:24:10 +02:00
|
|
|
icon = "${pkgs.mullvad-vpn}/share/icons/hicolor/32x32/apps/mullvad-vpn.png";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-08-16 05:55:57 +02:00
|
|
|
|
|
|
|
settings = {
|
|
|
|
"extensions.autoDisableScopes" = 0;
|
|
|
|
};
|
2024-08-13 22:24:10 +02:00
|
|
|
};
|
|
|
|
|
2023-06-17 02:15:45 +02:00
|
|
|
settings = {
|
|
|
|
"middlemouse.paste" = false;
|
|
|
|
|
|
|
|
"browser.download.useDownloadDir" = true;
|
|
|
|
"browser.tabs.insertAfterCurrent" = true;
|
2024-03-30 17:24:47 +01:00
|
|
|
"browser.tabs.warnOnClose" = true;
|
2023-06-17 02:15:45 +02:00
|
|
|
"browser.toolbars.bookmarks.visibility" = "never";
|
2023-06-25 15:15:01 +02:00
|
|
|
"browser.quitShortcut.disabled" = true;
|
2024-05-20 16:42:42 +02:00
|
|
|
"browser.sessionstore.restore_pinned_tabs_on_demand" = true;
|
2024-05-20 17:06:12 +02:00
|
|
|
|
2024-05-20 16:41:21 +02:00
|
|
|
"browser.urlbar.suggest.bookmark" = false;
|
2024-05-20 17:06:12 +02:00
|
|
|
"browser.urlbar.suggest.engines" = false;
|
2023-07-26 18:12:03 +02:00
|
|
|
"browser.urlbar.suggest.history" = false;
|
2024-05-20 17:52:45 +02:00
|
|
|
"browser.urlbar.suggest.openpage" = false;
|
2024-05-19 20:31:36 +02:00
|
|
|
"browser.urlbar.suggest.topsites" = false;
|
2024-08-13 22:28:57 +02:00
|
|
|
"browser.urlbar.trimHttps" = true;
|
2023-06-17 02:15:45 +02:00
|
|
|
|
|
|
|
"sidebar.position_start" = false;
|
|
|
|
"findbar.highlightAll" = true;
|
2024-05-19 20:32:52 +02:00
|
|
|
|
|
|
|
"xpinstall.signatures.required" = false;
|
2024-07-21 19:27:54 +02:00
|
|
|
|
|
|
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
2023-06-17 02:15:45 +02:00
|
|
|
};
|
|
|
|
};
|
2024-08-13 23:13:47 +02:00
|
|
|
|
2024-08-16 06:22:14 +02:00
|
|
|
home.file = mkIf phone {
|
2024-08-13 23:13:47 +02:00
|
|
|
".librewolf/default/chrome/userChrome.css".source = "${friendlyfox}/userChrome.css";
|
|
|
|
".librewolf/default/chrome/userContent.css".source = "${friendlyfox}/userContent.css";
|
|
|
|
};
|
2023-06-17 02:15:45 +02:00
|
|
|
}
|