Test at home
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user