feat(firefox): Add more search engine alias and fix better-fox break change
This commit is contained in:
		
							parent
							
								
									8c71258562
								
							
						
					
					
						commit
						5dd2eb2ac3
					
				
					 2 changed files with 50 additions and 5 deletions
				
			
		|  | @ -22,16 +22,15 @@ in | |||
|       package = pkgs.firefox-beta; | ||||
|       betterfox = { | ||||
|         enable = true; | ||||
|         profiles.default = { | ||||
|           enableAllSections = true; | ||||
|         }; | ||||
|       }; | ||||
|       languagePacks = [ | ||||
|         "zh-CN" | ||||
|         "en-US" | ||||
|       ]; | ||||
|       profiles.default = { | ||||
|         betterfox = { | ||||
|           enable = true; | ||||
|           enableAllSections = true; | ||||
|         }; | ||||
|         name = "default"; | ||||
|         isDefault = true; | ||||
|         extensions = { | ||||
|  | @ -173,6 +172,52 @@ in | |||
|               ]; | ||||
|               definedAliases = [ "nw" ]; | ||||
|             }; | ||||
|             "Rust Stdandard Lib" = { | ||||
|               urls = [ | ||||
|                 { | ||||
|                   template = "https://doc.rust-lang.org/nightly/std/index.html"; | ||||
|                   params = [ | ||||
|                     { | ||||
|                       name = "search"; | ||||
|                       value = "{searchTerms}"; | ||||
|                     } | ||||
|                   ]; | ||||
|                 } | ||||
|               ]; | ||||
|               definedAliases = [ "rs" ]; | ||||
|             }; | ||||
|             "GitHub" = { | ||||
|               urls = [ | ||||
|                 { | ||||
|                   template = "https://github.com/search"; | ||||
|                   params = [ | ||||
|                     { | ||||
|                       name = "q"; | ||||
|                       value = "{searchTerms}"; | ||||
|                     } | ||||
|                     { | ||||
|                       name = "type"; | ||||
|                       value = "repositories"; | ||||
|                     } | ||||
|                   ]; | ||||
|                 } | ||||
|               ]; | ||||
|               definedAliases = [ "gh" ]; | ||||
|             }; | ||||
|             "Rust Reference" = { | ||||
|               urls = [ | ||||
|                 { | ||||
|                   template = "https://doc.rust-lang.org/nightly/reference"; | ||||
|                   params = [ | ||||
|                     { | ||||
|                       name = "search"; | ||||
|                       value = "{searchTerms}"; | ||||
|                     } | ||||
|                   ]; | ||||
|                 } | ||||
|               ]; | ||||
|               definedAliases = [ "rr" ]; | ||||
|             }; | ||||
|             "bing".metaData.hidden = true; | ||||
|             "google".metaData.alias = "@g"; # builtin engines only support specifying one additional alias | ||||
|           }; | ||||
|  |  | |||
|  | @ -7,7 +7,7 @@ | |||
|   imports = | ||||
|     (with inputs; [ | ||||
|       sops-nix.homeManagerModules.sops | ||||
|       betterfox-nix.homeManagerModules.betterfox | ||||
|       betterfox-nix.homeModules.betterfox | ||||
|       nix-doom.homeModule | ||||
|     ]) | ||||
|     ++ lib.youthlic.loadImports ./.; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue