From 2b327fb50d00ed192c20b25efc7e065b1e98832e Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Thu, 14 Mar 2024 16:25:45 -0300 Subject: properly enable gnome connector in firefox now it can sync those 2 themes --- users/leonardo.nix | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/users/leonardo.nix b/users/leonardo.nix index 726bea4..8eb1110 100644 --- a/users/leonardo.nix +++ b/users/leonardo.nix @@ -110,7 +110,7 @@ group = "100"; }; }; - + services.gnome.gnome-browser-connector.enable = true; home-manager = { useGlobalPkgs = true; useUserPackages = true; @@ -127,12 +127,17 @@ slack whatsapp-for-linux telegram-desktop - firefox ]; }; + programs = { firefox = { enable = true; + package = pkgs.firefox.override { # nixpkgs' firefox/wrapper.nix + nativeMessagingHosts = [ + pkgs.gnome-browser-connector + ]; + }; profiles.leonardo = { userChrome = '' @import "firefox-gnome-theme/userChrome.css"; @@ -147,6 +152,31 @@ "browser.theme.dark-private-windows" = false; # Disable private window dark theme }; }; + policies = { + DisableTelemetry = true; + DisableFirefoxStudies = true; + EnableTrackingProtection = { + Value= true; + Locked = true; + Cryptomining = true; + Fingerprinting = true; + }; + DisablePocket = true; + DisableFirefoxAccounts = true; + DisableAccounts = true; + DisableFirefoxScreenshots = true; + OverrideFirstRunPage = ""; + OverridePostUpdatePage = ""; + DontCheckDefaultBrowser = true; + ExtensionSettings = { + "*".installation_mode = "blocked"; # blocks all addons except the ones specified below + # uBlock Origin: + "uBlock0@raymondhill.net" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; + installation_mode = "force_installed"; + }; + }; + }; }; bash = { enable = true; -- cgit v1.2.3