From 836564d6247d96f1392e2587efea985a4d0ba76b Mon Sep 17 00:00:00 2001 From: Dennis Schoepf Date: Sun, 23 Nov 2025 17:15:34 +0100 Subject: [PATCH] wip: dnsc-machine setup --- modules/firefox/default.nix | 48 +++++++++++++++++++++++++++---------- 1 file changed, 35 insertions(+), 13 deletions(-) diff --git a/modules/firefox/default.nix b/modules/firefox/default.nix index ec7a80f..6f8e46c 100644 --- a/modules/firefox/default.nix +++ b/modules/firefox/default.nix @@ -9,9 +9,15 @@ DisableFirefoxStudies = true; DisablePocket = true; DisableFirefoxScreenshots = true; + DisableForgetButton = true; + DisableMasterPasswordCreation = true; + DisableProfileImport = true; + DisableProfileRefresh = true; + DisableSetDesktopBackground = true; DisplayBookmarksToolbar = "never"; DisplayMenuBar = "default-off"; SearchBar = "unified"; + OfferToSaveLogins = false; OverrideFirstRunPage = ""; OverridePostUpdatePage = ""; EnableTrackingProtection = { @@ -23,7 +29,6 @@ DefaultDownloadDirectory = "\${home}/Downloads"; ExtensionSettings = { "{446900e4-71c2-419f-a6a7-df9c091e268b}" = { - default_area = "menupanel"; install_url = "https://addons.mozilla.org/firefox/downloads/latest/%7B446900e4-71c2-419f-a6a7-df9c091e268b%7D/latest.xpi"; installation_mode = "force_installed"; private_browsing = true; @@ -35,6 +40,7 @@ private_browsing = true; }; "sponsorBlocker@ajay.app" = { + default_area = "menupanel"; install_url = "https://addons.mozilla.org/firefox/downloads/latest/sponsorBlocker@ajay.app/latest.xpi"; installation_mode = "force_installed"; private_browsing = true; @@ -48,23 +54,39 @@ search.force = true; search.engines = { "Nix Packages" = { - urls = [{ - template = "https://search.nixos.org/packages"; - params = [ - { name = "query"; value = "{searchTerms}"; } - ]; - }]; + urls = [ + { + template = "https://search.nixos.org/packages"; + params = [ + { name = "query"; value = "{searchTerms}"; } + ]; + } + ]; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = [ "@np" ]; }; "Nix Options" = { definedAliases = [ "@no" ]; - urls = [{ - template = "https://search.nixos.org/options"; - params = [ - { name = "query"; value = "{searchTerms}"; } - ]; - }]; + urls = [ + { + template = "https://search.nixos.org/options"; + params = [ + { name = "query"; value = "{searchTerms}"; } + ]; + } + ]; + }; + "NixOS Wiki" = { + urls = [ + { + template = "https://wiki.nixos.org/w/index.php"; + params = [ + { name = "search"; value = "{searchTerms}"; } + ]; + } + ]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = [ "@nw" ]; }; bing.metaData.hidden = true; perplexity.metaData.hidden = true;