diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c44b1c..3c17f32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -158,7 +158,7 @@ jobs: -d "$body" \ https://ntfy.sh/splitleaf - name: Notify failure - if: needs.await-deploy.result == 'failure' || needs.await-deploy.result == 'skipped' + if: needs.await-deploy.result == 'failure' env: SHA: ${{ github.sha }} COMMIT_MSG: ${{ github.event.head_commit.message }} diff --git a/modules/home/programs/firefox.nix b/modules/home/programs/firefox.nix index a342511..5097bfe 100644 --- a/modules/home/programs/firefox.nix +++ b/modules/home/programs/firefox.nix @@ -40,16 +40,6 @@ in |> lib.map (glance: glance.domain) |> lib.head; }; - searchEngine = lib.mkOption { - type = lib.types.nonEmptyStr; - default = - allHosts - |> lib.attrValues - |> lib.map (host: host.config.custom.web-services.searxng) - |> lib.filter (searxng: searxng.enable) - |> lib.map (searxng: searxng.domain) - |> lib.head; - }; extensions = lib.mkOption { type = lib.types.attrsOf ( lib.types.submodule ( @@ -125,16 +115,6 @@ in }; extraConfig = lib.readFile "${inputs.betterfox}/user.js"; - - search = { - force = true; - default = "searxng"; - privateDefault = "searxng"; - engines.searxng = { - name = "searxng"; - urls = lib.singleton { template = "https://${cfg.searchEngine}/search?q={searchTerms}"; }; - }; - }; }; policies.ExtensionSettings = diff --git a/modules/nixos/web-services/glance.nix b/modules/nixos/web-services/glance.nix index 0893c06..a3f2e13 100644 --- a/modules/nixos/web-services/glance.nix +++ b/modules/nixos/web-services/glance.nix @@ -87,7 +87,7 @@ in widgets = lib.singleton { type = "search"; - search-engine = "https://search.splitleaf.de/search?q={QUERY}"; + search-engine = "google"; autofocus = true; } ++ applicationSites diff --git a/modules/nixos/web-services/searxng.nix b/modules/nixos/web-services/searxng.nix index b0ee186..97ffcaf 100644 --- a/modules/nixos/web-services/searxng.nix +++ b/modules/nixos/web-services/searxng.nix @@ -20,7 +20,7 @@ in enable = true; settings = { server = { - inherit (cfg) port; + port = cfg.port; secret_key = "unnecessary"; }; ui.center_alignment = true; @@ -29,11 +29,6 @@ in "searx.plugins.infinite_scroll.SXNGPlugin".active = true; "searx.plugins.self_info.SXNGPlugin".active = true; }; - search = { - autocomplete = "duckduckgo"; - favicon_resolver = "duckduckgo"; - }; - hostnames.remove = [ ''(.*\.)?nixos.wiki'' ]; }; };