From cd029a098c1b6b280b50f5ab7ad29f862c0ac738 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Sat, 21 Dec 2024 21:42:00 +0100 Subject: [PATCH] feat(firefox): add language packs --- home/graphical/firefox/default.nix | 9 ++------- modules/programs/firefox.nix | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/home/graphical/firefox/default.nix b/home/graphical/firefox/default.nix index 7e8bddc..f412c88 100644 --- a/home/graphical/firefox/default.nix +++ b/home/graphical/firefox/default.nix @@ -9,18 +9,13 @@ lib.mkIf osConfig.programs.firefox.enable { programs.firefox = { enable = true; # Installed by nixpkgs module - package = null; - languagePacks = [ - "de" - "en-GB" - "fr" - ]; + package = osConfig.programs.firefox.package; profiles.${config.home.username} = { name = config.home.username; isDefault = true; userContent = # css '' - // Sidebery + /* Sidebery */ @-moz-document url("moz-extension://d1d9847c-2bad-429f-9366-56db49b8c3d6/sidebar/sidebar.html") { #root { diff --git a/modules/programs/firefox.nix b/modules/programs/firefox.nix index f168632..637ab9f 100644 --- a/modules/programs/firefox.nix +++ b/modules/programs/firefox.nix @@ -10,7 +10,12 @@ }: lib.mkIf config.programs.firefox.enable { programs.firefox = { - package = pkgs.firefox-bin; + package = pkgs.firefox-beta-bin; + languagePacks = [ + "de" + "en-GB" + "fr" + ]; preferencesStatus = "locked"; preferences = { "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 "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.ui.desktop.enabled" = true; "browser.shell.checkDefaultBrowser" = false; #"privacy.clearOnShutdown.offlineApps" = true; - "layout.spellcheckDefault" = true; + "layout.spellcheckDefault" = 1; "browser.startup.page" = 3; # Restore session "browser.search.suggest.enabled" = false; "browser.discovery.enabled" = false;