Trouble With Firefox Configuration

I’m having a heck of a time getting any package settings to apply. Everything in my profile works a treat though, so I’m doing something right. Here’s my config:

So, for example, DisablePocket is very much not applied when I restart Firefox.

I don’t know for sure, but here are some guesses:

  1. Could it be that in spite of restarts, there is an old firefox process still running - so it’s just creating new windows on an already-running firefox?

  2. Also maybe check that you are running the firefox which home-manager has installed, not one in /run/current-system/sw/bin/firefox for example.

  3. And, does it work any different if you change:

    programs.firefox.package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
       extraPolicies = { .. };

    to this form:

    programs.firefox.package = pkgs.firefox.override {
       extraPolicies = { .. };
  4. Is policy.json supposed to work with non-ESR versions of firefox? I think it is, but perhaps try using pkgs.firefox-esr?


2 was it! Thank you! I totally forgot that I had set my browser shortcut to:

exec ${pkgs.firefox}/bin/firefox

so, I’m not sure how I was surprised when exactly that Firefox was running. :smiley: