server/slop: add brave shim user service and patch openclaw brave endpoint
This commit is contained in:
26
hosts/server/slop/brave.nix
Normal file
26
hosts/server/slop/brave.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Local Brave API shim as a user service
|
||||
systemd.user.services.brave-shim = {
|
||||
description = "Brave Search API shim (DDGS)";
|
||||
wantedBy = [ "default.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
WorkingDirectory = "/home/ocbwoy3/Projects/brave_shim";
|
||||
ExecStart = ''
|
||||
${pkgs.uv}/bin/uv run \
|
||||
--with fastapi \
|
||||
--with uvicorn \
|
||||
--with ddgs \
|
||||
--with pyyaml \
|
||||
python brave_shim.py
|
||||
'';
|
||||
Restart = "always";
|
||||
RestartSec = "3";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user