From 2573a46080b1fdcd3314e02aa7df79a3d6141c81 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 26 Mar 2024 13:02:09 -0400 Subject: [PATCH] home: added librewolf --- home/common-gui.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/home/common-gui.nix b/home/common-gui.nix index 55688aee..03b9e4cf 100644 --- a/home/common-gui.nix +++ b/home/common-gui.nix @@ -2,4 +2,34 @@ { imports = [ ./alacritty ]; + + programs.librewolf = { + enable = true; + settings = { + "browser.safebrowsing.malware.enabled" = true; + "browser.safebrowsing.phishing.enabled" = true; + "browser.safebrowsing.blockedURIs.enabled" = true; + + "browser.safebrowsing.provider.google4.gethashURL" = + "https://safebrowsing.googleapis.com/v4/fullHashes:find?$ct=application/x-protobuf&key=%GOOGLE_SAFEBROWSING_API_KEY%&$httpMethod=POST"; + + "browser.safebrowsing.provider.google4.updateURL" = + "https://safebrowsing.googleapis.com/v4/threatListUpdates:fetch?$ct=application/x-protobuf&key=%GOOGLE_SAFEBROWSING_API_KEY%&$httpMethod=POST"; + + "browser.safebrowsing.provider.google.gethashURL" = + "https://safebrowsing.google.com/safebrowsing/gethash?client=SAFEBROWSING_ID&appver=%MAJOR_VERSION%&pver=2.2"; + + "browser.safebrowsing.provider.google.updateURL" = + "https://safebrowsing.google.com/safebrowsing/downloads?client=SAFEBROWSING_ID&appver=%MAJOR_VERSION%&pver=2.2&key=%GOOGLE_SAFEBROWSING_API_KEY%"; + "browser.safebrowsing.downloads.enabled" = true; + + "identity.fxaccounts.enabled" = true; + + "privacy.clearOnShutdown.history" = false; + + "middlemouse.paste" = false; + "general.autoScroll" = true; + }; + }; } +