.
This commit is contained in:
parent
9121a627cd
commit
0de07cd804
8 changed files with 94 additions and 9 deletions
|
|
@ -1,5 +1,11 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
deepseekApiKeyPath = config.sops.secrets."deepseek_api_key".path;
|
||||
home-manager-config =
|
||||
{
|
||||
uid,
|
||||
|
|
@ -55,17 +61,27 @@ let
|
|||
enable = true;
|
||||
lfs.enable = true;
|
||||
signing = {
|
||||
key = "${HOME}/.ssh/id_ed25519.pub";
|
||||
key = "E6C30AB4CD83BB00";
|
||||
signByDefault = true;
|
||||
};
|
||||
includes = [
|
||||
{
|
||||
condition = "gitdir:~/checkout/zig";
|
||||
contents = {
|
||||
user = {
|
||||
name = "felipeim";
|
||||
email = "felipe@imatos.dev";
|
||||
signingkey = "E6C30AB4CD83BB00";
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
condition = "gitdir:~/dealwise/";
|
||||
contents = {
|
||||
user = {
|
||||
name = "felipematos";
|
||||
email = "5471818+fnzr@users.noreply.github.com";
|
||||
signingkey = "${HOME}/.ssh/id_ed25519.pub";
|
||||
signingkey = "E6C30AB4CD83BB00";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -166,6 +182,40 @@ let
|
|||
'';
|
||||
xdg.configFile."opencode/opencode.json".text = builtins.toJSON {
|
||||
"$schema" = "https://opencode.ai/config.json";
|
||||
provider = {
|
||||
deepseek = {
|
||||
npm = "@ai-sdk/openai-compatible";
|
||||
name = "DeepSeek";
|
||||
options = {
|
||||
baseURL = "https://api.deepseek.com";
|
||||
apiKey = "{file:${deepseekApiKeyPath}}";
|
||||
};
|
||||
models = {
|
||||
"deepseek-v4-pro" = {
|
||||
name = "DeepSeek-V4-Pro";
|
||||
limit = {
|
||||
context = 1048576;
|
||||
output = 262144;
|
||||
};
|
||||
options = {
|
||||
reasoningEffort = "high";
|
||||
thinking.type = "enabled";
|
||||
};
|
||||
};
|
||||
"deepseek-v4-flash" = {
|
||||
name = "DeepSeek-V4-Flash";
|
||||
limit = {
|
||||
context = 1048576;
|
||||
output = 262144;
|
||||
};
|
||||
options = {
|
||||
reasoningEffort = "high";
|
||||
thinking.type = "enabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
# provider = {
|
||||
# ollama = {
|
||||
# model = "qwen3.6";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue