Test at home

This commit is contained in:
Martin Pander
2026-02-11 21:00:05 +01:00
parent cb8f841e43
commit 74a01d576e
2 changed files with 5 additions and 3 deletions

View File

@@ -18,5 +18,7 @@
dot.llm = {
enable = true;
gemini-cli.enable = true;
opencode.enable = true;
opencode.enableConfig = true;
};
}

View File

@@ -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;
};
}