Test at home
This commit is contained in:
@@ -18,5 +18,7 @@
|
|||||||
dot.llm = {
|
dot.llm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
gemini-cli.enable = true;
|
gemini-cli.enable = true;
|
||||||
|
opencode.enable = true;
|
||||||
|
opencode.enableConfig = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ in
|
|||||||
enableConfig = lib.mkOption {
|
enableConfig = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
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
|
# Create the OpenCode config.json template with secret substitution
|
||||||
sops.templates."opencode/config.json" = {
|
sops.templates."opencode/opencode.json" = {
|
||||||
content = builtins.toJSON {
|
content = builtins.toJSON {
|
||||||
"$schema" = "https://opencode.ai/config.json";
|
"$schema" = "https://opencode.ai/config.json";
|
||||||
model = "anthropic/claude-sonnet-4-5-20250929";
|
model = "anthropic/claude-sonnet-4-5-20250929";
|
||||||
@@ -63,6 +63,6 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Link the generated config to the expected location
|
# 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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user