···115115116116 nameArray = builtins.map(a: a.name) (lib.optionals usesNixExtensions nixExtensions);
117117118118- requiresSigning = browser ? MOZ_REQUIRE_SIGNING
119119- -> toString browser.MOZ_REQUIRE_SIGNING != "";
120120-121118 # Check that every extension has a unqiue .name attribute
122119 # and an extid attribute
123120 extensions = if nameArray != (lib.unique nameArray) then
124121 throw "Firefox addon name needs to be unique"
125125- else if requiresSigning && !lib.hasSuffix "esr" browser.name then
126126- throw "Nix addons are only supported without signature enforcement (eg. Firefox ESR)"
122122+ else if browser.requireSigning || !browser.allowAddonSideload then
123123+ throw "Nix addons are only supported with signature enforcement disabled and addon sideloading enabled (eg. LibreWolf)"
127124 else builtins.map (a:
128125 if ! (builtins.hasAttr "extid" a) then
129129- throw "nixExtensions has an invalid entry. Missing extid attribute. Please use fetchfirefoxaddon"
126126+ throw "nixExtensions has an invalid entry. Missing extid attribute. Please use fetchFirefoxAddon"
130127 else
131128 a
132129 ) (lib.optionals usesNixExtensions nixExtensions);