mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
Enable opencode web service on pureintent (#104)
- Add opencode/web.nix module for web service configuration - Bind to Tailscale IP (100.122.32.106) on port 4096 - Pass JUSPAY_API_KEY from agenix secret to service - Update flake inputs: nixpkgs/unstable, nix-darwin/master, home-manager/master
This commit is contained in:
parent
0e07a3fbc2
commit
cd4805d5dd
5 changed files with 86 additions and 129 deletions
|
|
@ -6,7 +6,9 @@ in
|
|||
name = "Juspay";
|
||||
options = {
|
||||
baseURL = "https://grid.ai.juspay.net";
|
||||
apiKey = "{env:JUSPAY_API_KEY}";
|
||||
# HACK: hardcoded path to agenix secret. Should use XDG_RUNTIME_DIR but
|
||||
# OpenCode's {file:...} doesn't support environment variable expansion.
|
||||
apiKey = "{file:/run/user/1000/agenix/juspay-anthropic-api-key}";
|
||||
timeout = 600000;
|
||||
};
|
||||
inherit models;
|
||||
|
|
|
|||
9
modules/home/opencode/web.nix
Normal file
9
modules/home/opencode/web.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.opencode.web = {
|
||||
enable = true;
|
||||
# Bind to Tailscale IP only
|
||||
extraArgs = [ "--hostname" "100.122.32.106" "--port" "4096" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue