mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00:00
firefox: fix languagepacks policy
This commit is contained in:
parent
a9c9cc6e50
commit
4a4a8b1454
1 changed files with 12 additions and 10 deletions
|
@ -813,15 +813,6 @@ in {
|
||||||
its example for how to do this.
|
its example for how to do this.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.firefox.policies = {
|
|
||||||
ExtensionSettings = listToAttrs (map (lang:
|
|
||||||
nameValuePair "langpack-${lang}@firefox.mozilla.org" {
|
|
||||||
installation_mode = "normal_installed";
|
|
||||||
install_url =
|
|
||||||
"https://releases.mozilla.org/pub/firefox/releases/${cfg.package.version}/linux-x86_64/xpi/${lang}.xpi";
|
|
||||||
}) cfg.languagePacks);
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = lib.optional (cfg.finalPackage != null) cfg.finalPackage;
|
home.packages = lib.optional (cfg.finalPackage != null) cfg.finalPackage;
|
||||||
|
|
||||||
home.file = mkMerge ([{
|
home.file = mkMerge ([{
|
||||||
|
@ -1013,6 +1004,17 @@ in {
|
||||||
force = true;
|
force = true;
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
} // setAttrByPath modulePath { finalPackage = wrapPackage cfg.package; });
|
} // setAttrByPath modulePath {
|
||||||
|
finalPackage = wrapPackage cfg.package;
|
||||||
|
|
||||||
|
policies = {
|
||||||
|
ExtensionSettings = listToAttrs (map (lang:
|
||||||
|
nameValuePair "langpack-${lang}@firefox.mozilla.org" {
|
||||||
|
installation_mode = "normal_installed";
|
||||||
|
install_url =
|
||||||
|
"https://releases.mozilla.org/pub/firefox/releases/${cfg.package.version}/linux-x86_64/xpi/${lang}.xpi";
|
||||||
|
}) cfg.languagePacks);
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue