From 29d97a000674aa72072e5e0a09a69f1600775a27 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 30 Jun 2024 16:34:12 -0400 Subject: [PATCH] aly: brave search by default --- homes/aly/firefox/default.nix | 219 ++++++++++++++++++---------------- 1 file changed, 119 insertions(+), 100 deletions(-) diff --git a/homes/aly/firefox/default.nix b/homes/aly/firefox/default.nix index 8584b096..2f54e841 100644 --- a/homes/aly/firefox/default.nix +++ b/homes/aly/firefox/default.nix @@ -9,117 +9,136 @@ programs.firefox = { enable = true; - profiles.work = { - extensions = with pkgs.nur.repos.rycee.firefox-addons; [ - consent-o-matic - decentraleyes - keepassxc-browser - ublock-origin - zoom-redirector - ]; + profiles = { + default = { + extensions = with pkgs.nur.repos.rycee.firefox-addons; [ + augmented-steam + decentraleyes + keepassxc-browser + omnivore + sidebery + sponsorblock + ublock-origin + zoom-redirector + ]; - settings = { - "browser.bookmarks.file" = "${./bookmarks-work.html}"; - "browser.places.importBookmarksHTML" = true; - "browser.toolbars.bookmarks.visibility" = "newtab"; - "identity.fxaccounts.enabled" = false; - "network.cookie.cookieBehavior" = 1; - "privacy.donottrackheader.enabled" = true; - "privacy.fingerprintingProtection" = true; - "privacy.trackingprotection.emailtracking.enabled" = true; - "privacy.trackingprotection.enabled" = true; - "privacy.trackingprotection.global-checkbox.enabled" = true; - "privacy.trackingprotection.socialtracking.enabled" = true; - "signon.rememberSignons" = false; - }; + id = 0; - id = 1; + search = { + default = "Brave"; + force = true; + engines = { + "Brave" = { + definedAliases = ["!brave"]; + icon = "${pkgs.brave}/share/icons/hicolor/24x24/apps/brave-browser.png"; - search = { - default = "Google"; - force = true; - engines = { - "Bing" = { - metaData = { - hidden = true; - alias = "!bing"; + urls = [ + { + template = "https://search.brave.com/search"; + params = [ + { + name = "q"; + value = "{searchTerms}"; + } + ]; + } + ]; }; - }; - "DuckDuckGo" = { - metaData = { - hidden = true; - alias = "!ddg"; + + "nixpkgs" = { + definedAliases = ["!nix"]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + + urls = [ + { + template = "https://search.nixos.org/packages"; + params = [ + { + name = "type"; + value = "packages"; + } + { + name = "query"; + value = "{searchTerms}"; + } + ]; + } + ]; + }; + + "Bing" = { + metaData = { + hidden = true; + alias = "!bing"; + }; + }; + "Google" = { + metaData = { + hidden = true; + alias = "!google"; + }; }; }; }; - }; - }; - profiles.default = { - extensions = with pkgs.nur.repos.rycee.firefox-addons; [ - augmented-steam - decentraleyes - keepassxc-browser - omnivore - sidebery - sponsorblock - ublock-origin - zoom-redirector - ]; - - id = 0; - - search = { - default = "DuckDuckGo"; - force = true; - engines = { - "nixpkgs" = { - urls = [ - { - template = "https://search.nixos.org/packages"; - params = [ - { - name = "type"; - value = "packages"; - } - { - name = "query"; - value = "{searchTerms}"; - } - ]; - } - ]; - - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = ["!nix"]; - }; - - "Bing" = { - metaData = { - hidden = true; - alias = "!bing"; - }; - }; - "Google" = { - metaData = { - hidden = true; - alias = "!google"; - }; - }; + settings = { + "browser.toolbars.bookmarks.visibility" = "newtab"; + "network.cookie.cookieBehavior" = 1; + "permissions.default.desktop-notification" = 2; + "privacy.donottrackheader.enabled" = true; + "privacy.fingerprintingProtection" = true; + "privacy.trackingprotection.emailtracking.enabled" = true; + "privacy.trackingprotection.enabled" = true; + "privacy.trackingprotection.global-checkbox.enabled" = true; + "privacy.trackingprotection.socialtracking.enabled" = true; + "services.sync.prefs.sync.browser.uiCustomization.state" = true; }; }; - settings = { - "browser.toolbars.bookmarks.visibility" = "newtab"; - "network.cookie.cookieBehavior" = 1; - "permissions.default.desktop-notification" = 2; - "privacy.donottrackheader.enabled" = true; - "privacy.fingerprintingProtection" = true; - "privacy.trackingprotection.emailtracking.enabled" = true; - "privacy.trackingprotection.enabled" = true; - "privacy.trackingprotection.global-checkbox.enabled" = true; - "privacy.trackingprotection.socialtracking.enabled" = true; - "services.sync.prefs.sync.browser.uiCustomization.state" = true; + work = { + extensions = with pkgs.nur.repos.rycee.firefox-addons; [ + consent-o-matic + decentraleyes + keepassxc-browser + ublock-origin + zoom-redirector + ]; + + settings = { + "browser.bookmarks.file" = "${./bookmarks-work.html}"; + "browser.places.importBookmarksHTML" = true; + "browser.toolbars.bookmarks.visibility" = "newtab"; + "identity.fxaccounts.enabled" = false; + "network.cookie.cookieBehavior" = 1; + "privacy.donottrackheader.enabled" = true; + "privacy.fingerprintingProtection" = true; + "privacy.trackingprotection.emailtracking.enabled" = true; + "privacy.trackingprotection.enabled" = true; + "privacy.trackingprotection.global-checkbox.enabled" = true; + "privacy.trackingprotection.socialtracking.enabled" = true; + "signon.rememberSignons" = false; + }; + + id = 1; + + search = { + default = "Google"; + force = true; + engines = { + "Bing" = { + metaData = { + hidden = true; + alias = "!bing"; + }; + }; + "DuckDuckGo" = { + metaData = { + hidden = true; + alias = "!ddg"; + }; + }; + }; + }; }; }; };