feat(firefox): add language packs

This commit is contained in:
Nydragon 2024-12-21 21:42:00 +01:00
parent a9b1e35981
commit cd029a098c
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE
2 changed files with 14 additions and 10 deletions

View file

@ -9,18 +9,13 @@ lib.mkIf osConfig.programs.firefox.enable {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
# Installed by nixpkgs module # Installed by nixpkgs module
package = null; package = osConfig.programs.firefox.package;
languagePacks = [
"de"
"en-GB"
"fr"
];
profiles.${config.home.username} = { profiles.${config.home.username} = {
name = config.home.username; name = config.home.username;
isDefault = true; isDefault = true;
userContent = # css userContent = # css
'' ''
// Sidebery /* Sidebery */
@-moz-document url("moz-extension://d1d9847c-2bad-429f-9366-56db49b8c3d6/sidebar/sidebar.html") @-moz-document url("moz-extension://d1d9847c-2bad-429f-9366-56db49b8c3d6/sidebar/sidebar.html")
{ {
#root { #root {

View file

@ -10,7 +10,12 @@
}: }:
lib.mkIf config.programs.firefox.enable { lib.mkIf config.programs.firefox.enable {
programs.firefox = { programs.firefox = {
package = pkgs.firefox-bin; package = pkgs.firefox-beta-bin;
languagePacks = [
"de"
"en-GB"
"fr"
];
preferencesStatus = "locked"; preferencesStatus = "locked";
preferences = { preferences = {
"browser.bookmarks.restore_default_bookmarks" = false; "browser.bookmarks.restore_default_bookmarks" = false;
@ -44,12 +49,16 @@ lib.mkIf config.programs.firefox.enable {
"extensions.getAddons.showPane" = false; # Hides the recommendations tab at about:addons "extensions.getAddons.showPane" = false; # Hides the recommendations tab at about:addons
"dom.security.https_only_mode" = true; "dom.security.https_only_mode" = true;
"cookiebanners.service.mode" = 2;
"cookiebanners.service.mode" = 1;
"cookiebanners.bannerClicking.enabled" = true;
"cookiebanners.cookieInjector.enabled" = true;
"cookiebanners.service.mode.privateBrowsing" = 2; "cookiebanners.service.mode.privateBrowsing" = 2;
"cookiebanners.ui.desktop.enabled" = true;
"browser.shell.checkDefaultBrowser" = false; "browser.shell.checkDefaultBrowser" = false;
#"privacy.clearOnShutdown.offlineApps" = true; #"privacy.clearOnShutdown.offlineApps" = true;
"layout.spellcheckDefault" = true; "layout.spellcheckDefault" = 1;
"browser.startup.page" = 3; # Restore session "browser.startup.page" = 3; # Restore session
"browser.search.suggest.enabled" = false; "browser.search.suggest.enabled" = false;
"browser.discovery.enabled" = false; "browser.discovery.enabled" = false;