diff --git a/hosts/home/common.nix b/hosts/home/common.nix index d0a39bf..681de0b 100644 --- a/hosts/home/common.nix +++ b/hosts/home/common.nix @@ -18,5 +18,7 @@ dot.llm = { enable = true; gemini-cli.enable = true; + opencode.enable = true; + opencode.enableConfig = true; }; } diff --git a/modules/home/opencode.nix b/modules/home/opencode.nix index e40a769..7e3d577 100644 --- a/modules/home/opencode.nix +++ b/modules/home/opencode.nix @@ -8,7 +8,7 @@ in enableConfig = lib.mkOption { type = lib.types.bool; default = false; - description = "Enable managed OpenCode configuration with sops-nix secrets"; + description = "Enable managed OpenCode configuration"; }; }; @@ -19,7 +19,7 @@ in }; # Create the OpenCode config.json template with secret substitution - sops.templates."opencode/config.json" = { + sops.templates."opencode/opencode.json" = { content = builtins.toJSON { "$schema" = "https://opencode.ai/config.json"; model = "anthropic/claude-sonnet-4-5-20250929"; @@ -63,6 +63,6 @@ in }; # Link the generated config to the expected location - xdg.configFile."opencode/config.json".source = config.sops.templates."opencode/config.json".path; + xdg.configFile."opencode/opencode.json".source = config.sops.templates."opencode/opencode.json".path; }; }