Files
nix/hosts/server/slop/brave.nix

22 lines
488 B
Nix

{ pkgs, ... }:
let
braveShim = pkgs.callPackage ./brave-shim.nix { };
in
{
# 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";
ExecStart = "${braveShim}/bin/brave-shim";
Restart = "always";
RestartSec = "3";
};
};
}