mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 03:29:45 +01: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.
|
||||
'';
|
||||
|
||||
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.file = mkMerge ([{
|
||||
|
@ -1013,6 +1004,17 @@ in {
|
|||
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