server/slop: add brave shim user service and patch openclaw brave endpoint
This commit is contained in:
@@ -4,6 +4,18 @@
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
openclawPatched = inputs.openclaw.packages.${pkgs.system}.openclaw-gateway.overrideAttrs (old: {
|
||||
postInstall = (old.postInstall or "") + ''
|
||||
# Point Brave web-search endpoint to local shim
|
||||
if [ -d "$out/lib/openclaw/dist" ]; then
|
||||
grep -RIl "https://api.search.brave.com/" "$out/lib/openclaw/dist" | while read -r f; do
|
||||
substituteInPlace "$f" --replace-fail "https://api.search.brave.com/" "http://127.0.0.1:8000/"
|
||||
done
|
||||
fi
|
||||
'';
|
||||
});
|
||||
in
|
||||
{
|
||||
home-manager.sharedModules = [
|
||||
inputs.openclaw.homeManagerModules.openclaw
|
||||
@@ -11,8 +23,10 @@
|
||||
|
||||
users.users.ocbwoy3 = {
|
||||
packages = [
|
||||
inputs.openclaw.packages.${pkgs.system}.openclaw-gateway
|
||||
openclawPatched
|
||||
(pkgs.callPackage ./gogcli.nix { })
|
||||
pkgs.uv
|
||||
pkgs.python3
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user