From 74a01d576e01021e3f783887fbb9f847812253b5 Mon Sep 17 00:00:00 2001 From: Martin Pander Date: Wed, 11 Feb 2026 21:00:05 +0100 Subject: [PATCH] Test at home --- hosts/home/common.nix | 2 ++ modules/home/opencode.nix | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) 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; }; }