nix-config/home/librewolf.nix

75 lines
1.9 KiB
Nix
Raw Normal View History

{
pkgs,
lib,
firefox-addons,
phone,
...
}:
let
inherit (lib) mkIf;
friendlyfox = pkgs.callPackage ../packages/friendlyfox.nix { };
in
2023-06-17 02:15:45 +02:00
{
programs.librewolf = {
enable = true;
package = pkgs.librewolf.override { cfg.speechSynthesisSupport = false; };
profiles.default = {
extensions = with firefox-addons.packages.${pkgs.system}; [
ublock-origin
yomitan
];
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}"; } ];
icon = "${pkgs.mullvad-vpn}/share/icons/hicolor/32x32/apps/mullvad-vpn.png";
};
};
};
settings = {
"extensions.autoDisableScopes" = 0;
};
};
2023-06-17 02:15:45 +02:00
settings = {
"middlemouse.paste" = false;
"browser.download.useDownloadDir" = true;
"browser.tabs.insertAfterCurrent" = true;
"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;
"browser.sessionstore.restore_pinned_tabs_on_demand" = true;
"browser.urlbar.suggest.bookmark" = false;
"browser.urlbar.suggest.engines" = false;
"browser.urlbar.suggest.history" = false;
2024-05-20 17:52:45 +02:00
"browser.urlbar.suggest.openpage" = false;
"browser.urlbar.suggest.topsites" = false;
"browser.urlbar.trimHttps" = true;
2023-06-17 02:15:45 +02:00
"sidebar.position_start" = false;
"findbar.highlightAll" = true;
"xpinstall.signatures.required" = false;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
2023-06-17 02:15:45 +02:00
};
};
home.file = mkIf phone {
".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
}