diff --git a/flake.lock b/flake.lock index 38c72a1..8b1375d 100644 --- a/flake.lock +++ b/flake.lock @@ -54,11 +54,11 @@ }, "nur": { "locked": { - "lastModified": 1701107100, - "narHash": "sha256-8rSRheAjcEexKE1Hyf8To0AQeMTrvtBGP1iESX3PN4o=", + "lastModified": 1701114252, + "narHash": "sha256-/YYpvzKOQDayvHZlywF/Oq5X8ZgFMtldtKBlaiqs8co=", "owner": "nix-community", "repo": "nur", - "rev": "eab21a5514fd3dae3093b5c671b16ed7caabb402", + "rev": "82fc3d559e4e1cf99618ffd7f5f5f1ea26509763", "type": "github" }, "original": { diff --git a/modules/home/browser/default.nix b/modules/home/browser/default.nix index c693cf8..89a55b8 100644 --- a/modules/home/browser/default.nix +++ b/modules/home/browser/default.nix @@ -3,6 +3,66 @@ enable = true; profiles = { "default" = { + id = 0; + + search.default = "Startpage"; + search.engines = { + "Startpage" = { + urls = [{ + template = "https://startpage.com/do/search"; + params = [ + { name = "query"; value = "{searchTerms}"; } + ]; + }]; + definedAliases = [ "@sp" ]; + }; + "DuckDuckGo" = { + urls = [{ + template = "https://duckduckgo.com/"; + params = [ + { name = "q"; value = "{searchTerms}"; } + ]; + }]; + definedAliases = [ "@ddg" ]; + }; + "Google" = { + urls = [{ + template = "https://google.com/search"; + params = [ + { name = "q"; value = "{searchTerms}"; } + ]; + }]; + definedAliases = [ "@g" ]; + }; + "Wikipedia" = { + urls = [{ + template = "https://en.wikipedia.org/wiki/Special:Search"; + params = [ + { name = "search"; value = "{searchTerms}"; } + ]; + }]; + definedAliases = [ "@wiki" ]; + }; + "YouTube" = { + urls = [{ + template = "https://youtube.com/results"; + params = [ + { name = "search_query"; value = "{searchTerms}"; } + ]; + }]; + definedAliases = [ "@yt" ]; + }; + "Nix Packages" = { + urls = [{ + template = "https://search.nixos.org/packages"; + params = [ + { name = "type"; value = "packages"; } + { name = "query"; value = "{searchTerms}"; } + ]; + }]; + }; + }; + extensions = with pkgs.nur.repos.rycee.firefox-addons; [ bitwarden sponsorblock