nixcfg/homeManagerModules/apps/librewolf/default.nix

38 lines
1.4 KiB
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
pkgs,
lib,
config,
...
}: {
2024-03-28 19:52:15 -04:00
options = {
alyraffauf.apps.librewolf.enable = lib.mkEnableOption "Enables librewolf.";
2024-03-28 19:52:15 -04:00
};
config = lib.mkIf config.alyraffauf.apps.librewolf.enable {
2024-03-28 19:52:15 -04:00
programs.librewolf = {
enable = true;
settings = {
"browser.safebrowsing.malware.enabled" = true;
"browser.safebrowsing.phishing.enabled" = true;
"browser.safebrowsing.blockedURIs.enabled" = true;
2024-04-07 22:16:33 -04:00
"browser.safebrowsing.provider.google4.gethashURL" = "https://safebrowsing.googleapis.com/v4/fullHashes:find?$ct=application/x-protobuf&key=%GOOGLE_SAFEBROWSING_API_KEY%&$httpMethod=POST";
2024-03-28 19:52:15 -04:00
2024-04-07 22:16:33 -04:00
"browser.safebrowsing.provider.google4.updateURL" = "https://safebrowsing.googleapis.com/v4/threatListUpdates:fetch?$ct=application/x-protobuf&key=%GOOGLE_SAFEBROWSING_API_KEY%&$httpMethod=POST";
2024-03-28 19:52:15 -04:00
2024-04-07 22:16:33 -04:00
"browser.safebrowsing.provider.google.gethashURL" = "https://safebrowsing.google.com/safebrowsing/gethash?client=SAFEBROWSING_ID&appver=%MAJOR_VERSION%&pver=2.2";
2024-03-28 19:52:15 -04:00
2024-04-07 22:16:33 -04:00
"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%";
2024-03-28 19:52:15 -04:00
"browser.safebrowsing.downloads.enabled" = true;
"identity.fxaccounts.enabled" = true;
"privacy.clearOnShutdown.history" = false;
"middlemouse.paste" = false;
"general.autoScroll" = true;
};
};
};
}