From 9561853d2c5c18749dd7d8d3eca25a360e2d8dfe Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Fri, 6 Mar 2026 09:34:57 -0600 Subject: Add copilot-api package and service - Package copilot-api (GitHub Copilot API proxy) using bun - Create systemd service module for copilot-api - Enable service on ganymede listening on localhost:4141 - Add SSH port forwarding from mercury to ganymede for copilot-api - Update gitignore to exclude Claude Code artifacts Co-Authored-By: Claude (claude-sonnet-4.5) --- modules/services/options.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'modules/services/options.nix') diff --git a/modules/services/options.nix b/modules/services/options.nix index 5744471..17a4e6b 100644 --- a/modules/services/options.nix +++ b/modules/services/options.nix @@ -164,5 +164,24 @@ in { example = "/run/secrets.d/caddy-env"; }; }; + + copilot-api = { + enable = mkEnableOption "GitHub Copilot API proxy"; + listenAddr = mkOption { + description = "Address to listen on"; + type = ipAddr; + default = "127.0.0.1"; + }; + port = mkOption { + description = "Port to listen on"; + type = types.port; + default = 4141; + }; + githubToken = mkOption { + description = "Path to file containing GitHub token"; + type = types.nullOr types.str; + default = null; + }; + }; }; } -- cgit v1.3.1