chore(nixos/sourcegraph): Configure Sourcegraph to use Cheddar
Change-Id: I2b91bef97c16254ffefcbc4da48ef161a859e7a0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/521 Reviewed-by: lukegb <lukegb@tvl.fyi>
This commit is contained in:
parent
082ed2a74f
commit
d18faddba3
2 changed files with 13 additions and 0 deletions
|
@ -21,6 +21,8 @@ in {
|
||||||
"/var/lib/sourcegraph/etc:/etc/sourcegraph"
|
"/var/lib/sourcegraph/etc:/etc/sourcegraph"
|
||||||
"/var/lib/sourcegraph/data:/var/opt/sourcegraph"
|
"/var/lib/sourcegraph/data:/var/opt/sourcegraph"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
environment.SRC_SYNTECT_SERVER = "http://172.17.0.1:4238";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -244,6 +244,17 @@ in lib.fix(self: {
|
||||||
# Run a SourceGraph code search instance
|
# Run a SourceGraph code search instance
|
||||||
services.depot.sourcegraph.enable = true;
|
services.depot.sourcegraph.enable = true;
|
||||||
|
|
||||||
|
# Run a cheddar syntax highlighting server for SourceGraph
|
||||||
|
systemd.services.cheddar-server = {
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
script = "${depot.tools.cheddar}/bin/cheddar --listen 0.0.0.0:4238 --sourcegraph-server";
|
||||||
|
|
||||||
|
serviceConfig = {
|
||||||
|
DynamicUser = true;
|
||||||
|
Restart = "always";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Start a local SMTP relay to Gmail (used by gerrit)
|
# Start a local SMTP relay to Gmail (used by gerrit)
|
||||||
services.depot.smtprelay = {
|
services.depot.smtprelay = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue