I am using Nixos + Home-manager with flakes. I am currently having issues with setting extraPolicies. This configuration was previously working, but broke after re-installation. It is currently returning this error when I attempt a rebuild.
You need to override the wrapped Firefox instead of the unwrapped one. extraPolicies is implemented in the wrapper, presumably to avoid recompiling Firefox when users provide custom policies.