diff options
| author | brustybee <bee@4d2.org> | 2026-03-19 23:38:57 +0530 |
|---|---|---|
| committer | brustybee <bee@4d2.org> | 2026-03-19 23:38:57 +0530 |
| commit | 6e709195b0d27903983e079c1c366bb7de0b753e (patch) | |
| tree | 961a69f61b1f869b3fc25fcc8dfaafcd74b60fe5 | |
| parent | a6d4450b3438b380398e38b61f46b19022fff1e9 (diff) | |
add omnisearch and make it default search engine
| -rw-r--r-- | common/programs/zenBrowser.nix | 9 | ||||
| -rw-r--r-- | flake.nix | 12 |
2 files changed, 16 insertions, 5 deletions
diff --git a/common/programs/zenBrowser.nix b/common/programs/zenBrowser.nix index 8d9f08e..9fe22a9 100644 --- a/common/programs/zenBrowser.nix +++ b/common/programs/zenBrowser.nix @@ -75,7 +75,8 @@ in ExtensionSettings = builtins.listToAttrs extensions; SearchEngines = { - Default = "DuckDuckGo"; + # Default = "DuckDuckGo"; + Default = "Omnisearch"; PreventInstalls = true; Remove = [ "Google" @@ -83,6 +84,12 @@ in ]; Add = [ { + Name = "Omnisearch"; + URLTemplate = "http://localhost:8087/search?q={searchTerms}"; + IconURL = "http://localhost:8087/static/favicon.ico"; + Alias = ":o"; + } + { Name = "nixpkgs packages"; URLTemplate = "https://search.nixos.org/packages?query={searchTerms}"; IconURL = "https://wiki.nixos.org/favicon.ico"; @@ -1,8 +1,6 @@ { nixConfig = { - extra-substituters = [ - "https://nix-community.cachix.org" - ]; + extra-substituters = [ "https://nix-community.cachix.org" ]; extra-trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ]; @@ -22,6 +20,10 @@ url = "github:mangowm/mango"; inputs.nixpkgs.follows = "nixpkgs"; }; + omnisearch = { + url = "git+https://git.bwaaa.monster/omnisearch"; + inputs.nixpkgs.follows = "nixpkgs"; + }; sops-nix = { url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; @@ -41,7 +43,9 @@ inputs@{ flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } { systems = inputs.nixpkgs.lib.platforms.all; - imports = [ (inputs.nixpkgs.lib.modules.importApply ./common inputs) ]; + imports = [ + (inputs.nixpkgs.lib.modules.importApply ./common inputs) + ]; flake = let |
