aboutsummaryrefslogtreecommitdiff
path: root/modules/users/cli/opencode/default.nix
blob: 8c1071d8e72d6cf5463597642ffe11c6a0f8f1ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  config,
  lib,
  ...
}:
let
  cfg = config.nx.cli.opencode;
  inherit (lib) mkOption types mkIf;
in
{

  options.nx.cli.opencode = {
    enable = mkOption {
      description = "opencode open source ai coding agent";
      type = types.bool;
      default = false;
    };
  };

  config = mkIf cfg.enable {
    programs.opencode = {
      enable = true;
      settings = {
        theme = "system";
        share = "disabled";
        autoupdate = false;
      };
    };
  };
}