From de5683d40ae07cf70d4497de3cc74458bf7174f8 Mon Sep 17 00:00:00 2001 From: Elec3137 Date: Thu, 12 Mar 2026 13:31:01 -0700 Subject: [PATCH] graphical: add some nice firefox policies --- graphical/default.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/graphical/default.nix b/graphical/default.nix index abd40b5..0e53744 100644 --- a/graphical/default.nix +++ b/graphical/default.nix @@ -27,5 +27,30 @@ in plasma.enable = config.services.desktopManager.plasma6.enable; mpv.enable = true; }; + + programs.firefox = lib.mkDefault { + policies = { + ExtensionSettings = { + "uBlock0@raymondhill.net" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; + }; + }; + Preferences = { + "browser.newtabpage.activity-stream.feeds.wallpaperfeed".Value = false; + "browser.newtabpage.activity-stream.feeds.weatherfeed".Value = false; + + # from https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265 + "browser.newtabpage.activity-stream.feeds.section.topstories".Value = false; + "browser.newtabpage.activity-stream.feeds.snippets".Value = false; + "browser.newtabpage.activity-stream.section.highlights.includePocket".Value = false; + "browser.newtabpage.activity-stream.section.highlights.includeBookmarks".Value = false; + "browser.newtabpage.activity-stream.section.highlights.includeDownloads".Value = false; + "browser.newtabpage.activity-stream.section.highlights.includeVisited".Value = false; + "browser.newtabpage.activity-stream.showSponsored".Value = false; + "browser.newtabpage.activity-stream.system.showSponsored".Value = false; + "browser.newtabpage.activity-stream.showSponsoredTopSites".Value = false; + }; + }; + }; }; }