-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
firefox: support setting search engine & adding custom engines
With this change, it's now possible to configure the default search engine in Firefox with `programs.firefox.profiles.<name>.search.default` and add custom engines with `programs.firefox.profiles.<name>.search.engines`. It's also recommended to enable `programs.firefox.profiles.<name>.search.force = true` since Firefox will replace the symlink for the search configuration on every launch, but note that you'll loose any existing configuration by enabling this.
- Loading branch information
1 parent
64831f9
commit 19c0bd4
Showing
5 changed files
with
354 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,12 @@ | |
fingerprint = "2BE3 BAFD 793E A349 ED1F F00F 04D0 CEAF 916A 9A40"; | ||
}]; | ||
}; | ||
kira-bruneau = { | ||
name = "Kira Bruneau"; | ||
email = "[email protected]"; | ||
github = "kira-bruneau"; | ||
githubId = 382041; | ||
}; | ||
kubukoz = { | ||
name = "Jakub Kozłowski"; | ||
email = "[email protected]"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
tests/modules/programs/firefox/profile-settings-expected-search.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"engines": [ | ||
{ | ||
"_definedAliases": [ | ||
"@np" | ||
], | ||
"_iconURL": "file:///run/current-system/sw/share/icons/hicolor/scalable/apps/nix-snowflake.svg", | ||
"_isAppProvided": false, | ||
"_loadPath": "[home-manager]/programs.firefox.profiles.search.search.engines.\"Nix Packages\"", | ||
"_metaData": { | ||
"order": 1 | ||
}, | ||
"_name": "Nix Packages", | ||
"_urls": [ | ||
{ | ||
"params": [ | ||
{ | ||
"name": "type", | ||
"value": "packages" | ||
}, | ||
{ | ||
"name": "query", | ||
"value": "{searchTerms}" | ||
} | ||
], | ||
"template": "https://search.nixos.org/packages" | ||
} | ||
] | ||
}, | ||
{ | ||
"_definedAliases": [ | ||
"@nw" | ||
], | ||
"_iconURL": "https://nixos.wiki/favicon.png", | ||
"_iconUpdateURL": "https://nixos.wiki/favicon.png", | ||
"_isAppProvided": false, | ||
"_loadPath": "[home-manager]/programs.firefox.profiles.search.search.engines.\"NixOS Wiki\"", | ||
"_metaData": { | ||
"order": 2 | ||
}, | ||
"_name": "NixOS Wiki", | ||
"_updateInterval": 86400000, | ||
"_urls": [ | ||
{ | ||
"template": "https://nixos.wiki/index.php?search={searchTerms}" | ||
} | ||
] | ||
}, | ||
{ | ||
"_isAppProvided": true, | ||
"_metaData": { | ||
"hidden": true | ||
}, | ||
"_name": "Bing" | ||
}, | ||
{ | ||
"_isAppProvided": true, | ||
"_metaData": {}, | ||
"_name": "DuckDuckGo" | ||
}, | ||
{ | ||
"_isAppProvided": true, | ||
"_metaData": { | ||
"alias": "@g" | ||
}, | ||
"_name": "Google" | ||
} | ||
], | ||
"metaData": { | ||
"current": "DuckDuckGo", | ||
"hash": "BWvqUiaCuMJ20lbymFf2dqzWyl1cgm1LZhhdWNEp0Cc=", | ||
"useSavedOrder": true | ||
}, | ||
"version": 6 | ||
} |
Oops, something went wrong.