browser: fix Extensions.Uninstall + refactor nits

This commit is contained in:
colin 2022-11-01 19:29:33 -07:00
parent ad6daa4e5b
commit 775fc979fc

View File

@ -14,8 +14,7 @@ let
librewolfSettings = { librewolfSettings = {
browser = pkgs.librewolf-unwrapped.overrideAttrs (drv: { browser = pkgs.librewolf-unwrapped.overrideAttrs (drv: {
# this allows side-loading unsigned addons # this allows side-loading unsigned addons
# TODO: might be allowed to set this to `false`. MOZ_REQUIRE_SIGNING = false;
MOZ_REQUIRE_SIGNING = "";
}); });
libName = "librewolf"; libName = "librewolf";
dotDir = ".librewolf"; dotDir = ".librewolf";
@ -75,16 +74,15 @@ let
DisablePocket = true; DisablePocket = true;
DisableSetDesktopBackground = false; DisableSetDesktopBackground = false;
Extensions = {
# remove many default search providers # remove many default search providers
Uninstall = [ # XXX this seems to prevent the `nixExtensions` from taking effect
"google@search.mozilla.org" # Extensions.Uninstall = [
"bing@search.mozilla.org" # "google@search.mozilla.org"
"amazondotcom@search.mozilla.org" # "bing@search.mozilla.org"
"ebay@search.mozilla.org" # "amazondotcom@search.mozilla.org"
"twitter@search.mozilla.org" # "ebay@search.mozilla.org"
]; # "twitter@search.mozilla.org"
}; # ];
# XXX doesn't seem to have any effect... # XXX doesn't seem to have any effect...
# docs: https://github.com/mozilla/policy-templates#homepage # docs: https://github.com/mozilla/policy-templates#homepage
# Homepage = { # Homepage = {