diff options
Diffstat (limited to 'mixins/firefox')
-rw-r--r-- | mixins/firefox/default.nix | 97 |
1 files changed, 79 insertions, 18 deletions
diff --git a/mixins/firefox/default.nix b/mixins/firefox/default.nix index 3ab8795..ff14efc 100644 --- a/mixins/firefox/default.nix +++ b/mixins/firefox/default.nix @@ -5,6 +5,7 @@ in config, inputs, pkgs, + lib, ... }: { home-manager.users.tzlil = { @@ -55,29 +56,73 @@ in package = pkgs.wrapFirefox pkgs.firefox-unwrapped { extraPolicies = { OverrideFirstRunPage = ""; - Extensions = { - Install = map (x: x.src.outPath) config.home-manager.users.tzlil.programs.firefox.profiles."default".extensions; - # Uninstall = [ - # "google@search.mozilla.org" - # "amazondotcom@search.mozilla.org" - # "wikipedia@search.mozilla.org" - # "bing@search.mozilla.org" - # ]; + Extensions.Install = map (x: x.src.outPath) config.home-manager.users.tzlil.programs.firefox.profiles."default".extensions; + ExtensionSettings = { + "google@search.mozilla.org" = {installation_mode = "blocked";}; + "amazondotcom@search.mozilla.org" = {installation_mode = "blocked";}; + "wikipedia@search.mozilla.org" = {installation_mode = "blocked";}; + "bing@search.mozilla.org" = {installation_mode = "blocked";}; }; - # SearchEngines.Remove = [ - # "Amazon" - # "Bing" - # "Google" - # "Twitter" - # "Wikipedia" - # "Yahoo" - # ]; }; }; profiles."${profile}" = { search = { default = "DuckDuckGo"; force = true; + engines = { + "Nix Packages" = { + 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 = ["!np"]; + }; + "Home Manager" = { + urls = [ + { + template = "https://mipmip.github.io/home-manager-option-search/"; + params = [ + { + name = "query"; + value = "{searchTerms}"; + } + ]; + } + ]; + + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = ["!hm"]; + }; + "Invidious" = { + urls = [ + { + template = "https://yewtu.be/search"; + params = [ + { + name = "q"; + value = "{searchTerms}"; + } + ]; + } + ]; + + iconUpdateURL = "https://invidious.io/favicon.ico"; + definedAliases = ["!yt"]; + }; + }; }; userChrome = builtins.readFile ./userChrome.css; extensions = with inputs.firefox-addons.packages.${pkgs.system}; [ @@ -93,8 +138,20 @@ in # usability crap vimium - # tree-style-tab - sidebery + # upgrade for new theme stuff + (inputs.firefox-addons.lib.${pkgs.system}.buildFirefoxXpiAddon { + pname = "sidebery"; + version = "v5.0.0rc4"; + addonId = "{3c078156-979c-498b-8990-85f7987dd929}"; + url = "https://github.com/mbnuqw/sidebery/releases/download/v5.0.0rc4/sidebery-5.0.0rc4.xpi"; + sha256 = "sha256-YsH9yYfGefClRS93dMV/eLMFuoPFKPrx0NL2hIv4dEk="; + meta = with lib; { + homepage = "https://github.com/mbnuqw/sidebery"; + description = "Tabs tree and bookmarks in sidebar with advanced containers configuration."; + license = licenses.mit; + platforms = platforms.all; + }; + }) redirector demodal kristofferhagen-nord-theme @@ -114,12 +171,16 @@ in "browser.startup.homepage" = "https://lobste.rs"; "extensions.activeThemeID" = "{e410fec2-1cbd-4098-9944-e21e708418af}"; + "svg.context-properties.content.enabled" = true; "browser.toolbars.bookmarks.visibility" = "always"; "browser.uidensity" = 1; "browser.aboutConfig.showWarning" = false; "browser.shell.checkDefaultBrowser" = false; + # remove google + "browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts" = false; + "browser.search.hiddenOneOffs" = "Google,Bing,Amazon.com,eBay,Twitter,Wikipedia (en)"; "browser.download.dir" = config.home-manager.users.tzlil.xdg.userDirs.download; |