mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 21:19:07 +01:00
Compare commits
6 commits
a94e7e8898
...
31e26cfe37
| Author | SHA1 | Date | |
|---|---|---|---|
| 31e26cfe37 | |||
| 526937eb39 | |||
| fafd352b53 | |||
| f9398c9d87 | |||
| b132276ca8 | |||
| 9fcbb238be |
4 changed files with 28 additions and 3 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -158,7 +158,7 @@ jobs:
|
||||||
-d "$body" \
|
-d "$body" \
|
||||||
https://ntfy.sh/splitleaf
|
https://ntfy.sh/splitleaf
|
||||||
- name: Notify failure
|
- name: Notify failure
|
||||||
if: needs.await-deploy.result == 'failure'
|
if: needs.await-deploy.result == 'failure' || needs.await-deploy.result == 'skipped'
|
||||||
env:
|
env:
|
||||||
SHA: ${{ github.sha }}
|
SHA: ${{ github.sha }}
|
||||||
COMMIT_MSG: ${{ github.event.head_commit.message }}
|
COMMIT_MSG: ${{ github.event.head_commit.message }}
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,16 @@ in
|
||||||
|> lib.map (glance: glance.domain)
|
|> lib.map (glance: glance.domain)
|
||||||
|> lib.head;
|
|> 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 {
|
extensions = lib.mkOption {
|
||||||
type = lib.types.attrsOf (
|
type = lib.types.attrsOf (
|
||||||
lib.types.submodule (
|
lib.types.submodule (
|
||||||
|
|
@ -115,6 +125,16 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = lib.readFile "${inputs.betterfox}/user.js";
|
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 =
|
policies.ExtensionSettings =
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ in
|
||||||
widgets =
|
widgets =
|
||||||
lib.singleton {
|
lib.singleton {
|
||||||
type = "search";
|
type = "search";
|
||||||
search-engine = "google";
|
search-engine = "https://search.splitleaf.de/search?q={QUERY}";
|
||||||
autofocus = true;
|
autofocus = true;
|
||||||
}
|
}
|
||||||
++ applicationSites
|
++ applicationSites
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
server = {
|
server = {
|
||||||
port = cfg.port;
|
inherit (cfg) port;
|
||||||
secret_key = "unnecessary";
|
secret_key = "unnecessary";
|
||||||
};
|
};
|
||||||
ui.center_alignment = true;
|
ui.center_alignment = true;
|
||||||
|
|
@ -29,6 +29,11 @@ in
|
||||||
"searx.plugins.infinite_scroll.SXNGPlugin".active = true;
|
"searx.plugins.infinite_scroll.SXNGPlugin".active = true;
|
||||||
"searx.plugins.self_info.SXNGPlugin".active = true;
|
"searx.plugins.self_info.SXNGPlugin".active = true;
|
||||||
};
|
};
|
||||||
|
search = {
|
||||||
|
autocomplete = "duckduckgo";
|
||||||
|
favicon_resolver = "duckduckgo";
|
||||||
|
};
|
||||||
|
hostnames.remove = [ ''(.*\.)?nixos.wiki'' ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue