From 38a6eaf5f6904afc47276b9dac913ee8b27a9972 Mon Sep 17 00:00:00 2001 From: KoenDR06 Date: Sat, 1 Nov 2025 17:39:40 +0100 Subject: [PATCH] added some firefox preferences --- modules/apps/visual/firefox.nix | 57 +++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/modules/apps/visual/firefox.nix b/modules/apps/visual/firefox.nix index 7bf67ac..afa8127 100644 --- a/modules/apps/visual/firefox.nix +++ b/modules/apps/visual/firefox.nix @@ -27,8 +27,33 @@ in { DisableAccounts = true; DisableFirefoxScreenshots = true; DisplayBookmarksToolbar = "never"; + DontCheckDefaultBrowser = true; + GenerativeAI = false; PasswordManagerEnabled = false; + SearchEngines = { + Default = "DuckDuckGo"; + Add = [ + { + Name = "DuckDuckGo"; + URLTemplate = "https://duckduckgo.com/?q={searchTerms}"; + Alias = "@ddg"; + } + { + Name = "NixOS Packages"; + URLTemplate = "https://search.nixos.org/packages?query={searchTerms}"; + Alias = "@pack"; + IconURL = "https://search.nixos.org/favicon-96x96.png"; + } + { + Name = "NixOS Options"; + URLTemplate = "https://search.nixos.org/options?query={searchTerms}"; + Alias = "@opt"; + IconURL = "https://search.nixos.org/favicon-96x96.png"; + } + ]; + }; + ExtensionSettings = { "*".installation_mode = "blocked"; # uBlock Origin: @@ -63,6 +88,38 @@ in { }; }; + Cookies = { + Behaviour = "reject-foreign"; # No third party cookies + BehaviourPrivateBrowsing = "reject"; + + Block = [ + "https://google.com" + "https://maps.google.com" + "https://youtube.com" + "https://duckduckgo.com" + ]; + }; + + WebsiteFilter.Block = ["https://chatgpt.com"]; + + FirefoxHome = { + "SponsoredTopSites" = false; + "SponsoredPocket" = false; + "SponsoredStories" = false; + }; + + FirefoxSuggest = { + SponsoredSuggestions = false; + ImproveSuggest = false; + }; + + EnableTrackingProtection = { + Locked = true; + Cryptomining = true; + Fingerprinting = true; + EmailTracking = true; + }; + Preferences = { general = { autoScroll = true;