my nixos/home-manager configuration
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

update zen engines + remove dns over https

youn d80a2550 acb09cc2

+50 -39
+50 -39
home-manager/modules/zen-browser.nix
··· 8 8 9 9 let 10 10 cfg = config.modules.zen-browser; 11 + 12 + mkEngine = 13 + { 14 + name, 15 + alias, 16 + url, 17 + }: 18 + { 19 + name = name; 20 + urls = [ 21 + { 22 + template = url; 23 + } 24 + ]; 25 + definedAliases = [ alias ]; 26 + }; 11 27 in 12 28 { 13 29 imports = [ ··· 40 56 HardwareAcceleration = true; 41 57 42 58 HttpsOnlyMode = "force_enabled"; 43 - 44 - DNSOverHTTPS = { 45 - Enabled = true; 46 - ProviderURL = "https://security.cloudflare-dns.com/dns-query"; 47 - Fallback = false; 48 - Locked = true; 49 - }; 50 59 51 60 ShowHomeButton = false; 52 61 Homepage = { ··· 197 206 ]; 198 207 } 199 208 { 209 + name = "Nix"; 210 + bookmarks = [ 211 + { 212 + name = "Home Manager configuration options"; 213 + url = "https://nix-community.github.io/home-manager/options.xhtml"; 214 + } 215 + { 216 + name = "NixOS configuration options"; 217 + url = "https://nixos.org/manual/nixos/stable/options.html"; 218 + } 219 + ]; 220 + } 221 + { 200 222 name = "eDocPerso"; 201 223 url = "https://v2-app.edocperso.fr"; 202 224 } ··· 232 254 default = "ddg"; 233 255 privateDefault = "ddg"; 234 256 engines = { 235 - nix-packages = { 257 + rust-docs = mkEngine { 258 + name = "rust-docs"; 259 + alias = "!rs"; 260 + url = "https://doc.rust-lang.org/stable/std/index.html?search={searchTerms}"; 261 + }; 262 + docs-rs = mkEngine { 263 + name = "docs.rs"; 264 + alias = "!dr"; 265 + url = "https://docs.rs/releases/search?query={searchTerms}"; 266 + }; 267 + crates-io = mkEngine { 268 + name = "crates.io"; 269 + alias = "!cr"; 270 + url = "https://crates.io/search?q={searchTerms}"; 271 + }; 272 + nix-packages = mkEngine { 236 273 name = "Nix Packages"; 237 - urls = [ 238 - { 239 - template = "https://search.nixos.org/packages"; 240 - params = [ 241 - { 242 - name = "type"; 243 - value = "packages"; 244 - } 245 - { 246 - name = "query"; 247 - value = "{searchTerms}"; 248 - } 249 - ]; 250 - } 251 - ]; 252 - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; 253 - definedAliases = [ "@np" ]; 274 + alias = "!np"; 275 + url = "https://search.nixos.org/packages?type=packages&query={searchTerms}"; 254 276 }; 255 - nixos-wiki = { 277 + nixos-wiki = mkEngine { 256 278 name = "NixOS Wiki"; 257 - urls = [ 258 - { 259 - template = "https://wiki.nixos.org/w/index.php"; 260 - params = [ 261 - { 262 - name = "search"; 263 - value = "{searchTerms}"; 264 - } 265 - ]; 266 - } 267 - ]; 268 - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; 269 - definedAliases = [ "@nw" ]; 279 + alias = "!nw"; 280 + url = "https://wiki.nixos.org/w/index.php?search={searchTerms}"; 270 281 }; 271 282 }; 272 283 force = true;