diff --git a/configuration.nix b/configuration.nix index 79d4446..fb768c5 100644 --- a/configuration.nix +++ b/configuration.nix @@ -24,12 +24,13 @@ backend = "docker"; containers = { degoog = { - # degoog image = "ghcr.io/fccview/degoog:latest"; - # volumes = [ "~/degoog/data:/app/data" ]; - user = "1000:1000"; ports = [ "4444:4444" ]; }; + searxng = { + image = "ghcr.io/searxng/searxng:latest"; + ports = [ "8888:8080" ]; + }; }; }; }; diff --git a/home.nix b/home.nix index 84787d4..53dbc0f 100644 --- a/home.nix +++ b/home.nix @@ -30,8 +30,8 @@ profiles.default = { search = { force = true; - default = "degoog"; - privateDefault = "degoog"; + default = "searxng"; + privateDefault = "searxng"; engines = let mkEngineForceFavicon = aliases: queryUrl: iconUrl: { @@ -54,20 +54,28 @@ in { # Degoog Engine - /* - "degoog" = mkEngineForceFavicon [ - "@deg" - "@degoog" - ] "http://localhost:4444/search?q={searchTerms}" "http://localhost:4444/public/favicon/favicon.ico"; - */ - - degoog = { - name = "degoog"; - urls = [ { template = "http://localhost:4444/search?q={searchTerms}"; } ]; - icon = "http://localhost:4444/public/favicon/favicon.ico"; - definedAliases = [ "@dg" "@deg" "@degoog"]; - }; + "degoog" = + (mkEngineForceFavicon [ + "@deg" + "@degoog" + ] "http://localhost:4444/search?q={searchTerms}" "http://localhost:4444/public/favicon/favicon.ico") + // { + name = "degoog"; + }; + "searxng" = + (mkEngineForceFavicon + [ + "@sx" + "@sxng" + "@sear" + ] + "http://localhost:8888/search?q={searchTerms}" + "http://localhost:8888/static/themes/simple/img/favicon.png" + ) + // { + name = "searxng"; + }; # Dev "GitHub Repos" = mkEngineForceFavicon [ "@gh" "@github" ]