firefox: add extraPolicies support on Darwin with high enough stateVersion
On Darwin, extraPolicies currently fails silently to do anything. This commit enables it to actually add policies given a firefox package when stateVersion is higher than 19.09 (currently, pkgs.firefox does not build.)
This commit is contained in:
parent
6d3b6dc922
commit
78e58b311e
|
@ -201,13 +201,13 @@ let
|
|||
|
||||
in if package == null then
|
||||
null
|
||||
else if isDarwin then
|
||||
package
|
||||
else if versionAtLeast config.home.stateVersion "19.09" then
|
||||
package.override (old: {
|
||||
cfg = old.cfg or { } // fcfg;
|
||||
cfg = old.cfg or { } // (if isDarwin then { } else fcfg);
|
||||
extraPolicies = (old.extraPolicies or { }) // cfg.policies;
|
||||
})
|
||||
else if isDarwin then
|
||||
package
|
||||
else
|
||||
(pkgs.wrapFirefox.override { config = bcfg; }) package { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue