aboutsummaryrefslogtreecommitdiff
path: root/modules/services/options.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-03-06 09:34:57 -0600
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-03-06 12:00:17 -0600
commit9561853d2c5c18749dd7d8d3eca25a360e2d8dfe (patch)
tree697e4bfc4a1f14d72f082f11c7a7b92fdecd0061 /modules/services/options.nix
parente4a00e31c5a0a343749963598fa5d7faa49d60c1 (diff)
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) <noreply@anthropic.com>
Diffstat (limited to 'modules/services/options.nix')
-rw-r--r--modules/services/options.nix19
1 files changed, 19 insertions, 0 deletions
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;
+ };
+ };
};
}