1
0
Fork 0
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:
bricked 2024-09-17 17:20:22 +00:00 committed by GitHub
parent a9c9cc6e50
commit 4a4a8b1454
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
};
});
}