Personal-use NixOS configuration

Firefox tweaks, use Kagi and add home-manager options search

+67 -21
+2
homes/career/desktop/firefox.nix
··· 13 13 "browser.startup.page" = lib.mkForce 1; 14 14 "browser.startup.homepage" = "https://app.gusto.com|https://app.intercom.com"; 15 15 }; 16 + 17 + extensions.packages = lib.mkForce [ ]; 16 18 }; 17 19 }; 18 20 }
+65 -21
homes/encode42/desktop/firefox.nix
··· 1 1 { firefox-addons, pkgs, ... }: 2 2 3 + let 4 + kagiIcon = "https://kagi.com/favicon.ico"; 5 + nixosIcon = "https://wiki.nixos.org/favicon.ico"; 6 + homeManagerIcon = "https://home-manager-options.extranix.com/images/favicon.ico"; 7 + in 3 8 { 4 9 imports = [ 5 10 ../../shared/desktop/firefox.nix ··· 56 61 }; 57 62 58 63 search = { 59 - default = "searx"; 64 + default = "kagi"; 60 65 61 66 engines = { 62 - searx = { 63 - name = "encrypted group search"; 64 - definedAliases = [ "@searx" ]; 67 + kagi = { 68 + name = "Kagi"; 69 + definedAliases = [ "@kagi" ]; 70 + 71 + iconMapObj."16" = kagiIcon; 65 72 66 73 urls = [ 67 74 { 68 - template = "https://search.encrypted.group/search?q={searchTerms}"; 75 + template = "https://kagi.com/search"; 76 + params = [ 77 + { 78 + name = "q"; 79 + value = "{searchTerms}"; 80 + } 81 + ]; 82 + } 83 + ]; 84 + }; 85 + 86 + nixos-wiki = { 87 + name = "NixOS Wiki"; 88 + definedAliases = [ "@nixos-wiki" ]; 89 + 90 + iconMapObj."16" = nixosIcon; 91 + 92 + urls = [ 93 + { 94 + template = "https://wiki.nixos.org/w/index.php"; 95 + params = [ 96 + { 97 + name = "search"; 98 + value = "{searchTerms}"; 99 + } 100 + ]; 69 101 } 70 102 ]; 71 103 }; 72 104 73 105 nix-packages = { 74 106 name = "Nix Packages"; 75 - iconMapObj."16" = "https://wiki.nixos.org/favicon.ico"; 76 107 definedAliases = [ "@nixpkgs" ]; 77 108 109 + iconMapObj."16" = nixosIcon; 110 + 78 111 urls = [ 79 112 { 80 113 template = "https://search.nixos.org/packages"; 81 114 params = [ 82 - { 83 - name = "type"; 84 - value = "packages"; 85 - } 86 115 { 87 116 name = "query"; 88 117 value = "{searchTerms}"; ··· 94 123 95 124 nixos-options = { 96 125 name = "NixOS Options"; 97 - iconMapObj."16" = "https://wiki.nixos.org/favicon.ico"; 98 126 definedAliases = [ "@nixos" ]; 127 + 128 + iconMapObj."16" = nixosIcon; 99 129 100 130 urls = [ 101 131 { 102 132 template = "https://search.nixos.org/options"; 103 133 params = [ 104 134 { 105 - name = "type"; 106 - value = "options"; 107 - } 108 - { 109 135 name = "query"; 110 136 value = "{searchTerms}"; 111 137 } ··· 114 140 ]; 115 141 }; 116 142 117 - nixos-wiki = { 118 - name = "NixOS Wiki"; 119 - iconMapObj."16" = "https://wiki.nixos.org/favicon.ico"; 120 - definedAliases = [ "@nixos-wiki" ]; 143 + home-options = { 144 + name = "Home Options"; 145 + definedAliases = [ 146 + "@home-options" 147 + "@home-manager" 148 + ]; 149 + 150 + iconMapObj."16" = homeManagerIcon; 121 151 122 152 urls = [ 123 153 { 124 - template = "https://wiki.nixos.org/w/index.php?search={searchTerms}"; 154 + template = "https://home-manager-options.extranix.com/"; 155 + params = [ 156 + { 157 + name = "query"; 158 + value = "{searchTerms}"; 159 + } 160 + ]; 125 161 } 126 162 ]; 127 163 }; 128 164 165 + wikipedia.definedAliases = [ "@wiki" ]; 166 + 167 + amazondotcom-us.metaData.hidden = true; 129 168 bing.metaData.hidden = true; 169 + ebay.metaData.hidden = true; 170 + perplexity.metaData.hidden = true; 130 171 }; 131 172 132 173 order = [ 174 + "kagi" 133 175 "ddg" 134 176 "google" 177 + "wikipedia" 178 + "nixos-wiki" 135 179 "nix-packages" 136 180 "nixos-options" 137 - "nixos-wiki" 181 + "home-options" 138 182 ]; 139 183 }; 140 184 };