I recently switched my default search engine to give Kagi a try. It was a lot less straightforward than I expected.
You can't add a new search engine anywhere in firefox settings; you have to go to the search website, then right click the URL, and the menu includes an option to add the search. Then you can go back to settings and set it as default.