mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-22 18:29:39 +01:00
firefox: restore compatibility for extraPolicies
This commit makes it possible to specify Firefox' extraPolicies
through:
programs.firefox.package = pkgs.firefox.override {
extraPolicies = {... }
}
This was possible in the past but was broken by:
3feeb77155
firefox: add support for specifying policies (#4626)
This commit is contained in:
parent
fa152fd745
commit
bf4b576f84
2 changed files with 11 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ let
|
|||
else if versionAtLeast config.home.stateVersion "19.09" then
|
||||
package.override (old: {
|
||||
cfg = old.cfg or { } // fcfg;
|
||||
extraPolicies = cfg.policies;
|
||||
extraPolicies = (old.extraPolicies or { }) // cfg.policies;
|
||||
})
|
||||
else
|
||||
(pkgs.wrapFirefox.override { config = bcfg; }) package { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue