Fix pi.nix syntax - force overwrite existing config files
This commit is contained in:
parent
38e3a66bc7
commit
5b0095b959
1 changed files with 54 additions and 52 deletions
106
home/pi.nix
106
home/pi.nix
|
|
@ -8,34 +8,35 @@
|
||||||
home.file.".pi/agent/models.json" = {
|
home.file.".pi/agent/models.json" = {
|
||||||
force = true;
|
force = true;
|
||||||
text = builtins.toJSON {
|
text = builtins.toJSON {
|
||||||
providers = {
|
providers = {
|
||||||
openrouter = {
|
openrouter = {
|
||||||
baseUrl = "https://openrouter.ai/api/v1";
|
baseUrl = "https://openrouter.ai/api/v1";
|
||||||
api = "openai-completions";
|
api = "openai-completions";
|
||||||
apiKey = "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";
|
apiKey = "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";
|
||||||
};
|
};
|
||||||
ollama-cloud = {
|
ollama-cloud = {
|
||||||
baseUrl = "https://ollama.com/v1";
|
baseUrl = "https://ollama.com/v1";
|
||||||
api = "openai-completions";
|
api = "openai-completions";
|
||||||
apiKey = "1658177a8be642d8a25783a70116f74f.5St4R7VUOyaeVPW6OEB0GGG0";
|
apiKey = "1658177a8be642d8a25783a70116f74f.5St4R7VUOyaeVPW6OEB0GGG0";
|
||||||
compat = {
|
compat = {
|
||||||
supportsDeveloperRole = false;
|
supportsDeveloperRole = false;
|
||||||
supportsReasoningEffort = false;
|
supportsReasoningEffort = false;
|
||||||
|
};
|
||||||
|
models = [
|
||||||
|
{ id = "kimi-k2.6:cloud"; }
|
||||||
|
{ id = "glm-5.1:cloud"; }
|
||||||
|
{ id = "gemma4:31b-cloud"; }
|
||||||
|
{ id = "devstral-small-2:24b-cloud"; }
|
||||||
|
{ id = "devstral-2:123b-cloud"; }
|
||||||
|
{ id = "cogito-2.1:671b-cloud"; }
|
||||||
|
{ id = "gemini-3-flash-preview:cloud"; }
|
||||||
|
{ id = "nematron-3-super:cloud"; }
|
||||||
|
{ id = "deepseek-v3.1:671b"; }
|
||||||
|
{ id = "deepseek-v3.2"; }
|
||||||
|
{ id = "deepseek-v4-flash"; }
|
||||||
|
{ id = "deepseek-v4-pro"; }
|
||||||
|
];
|
||||||
};
|
};
|
||||||
models = [
|
|
||||||
{ id = "kimi-k2.6:cloud"; }
|
|
||||||
{ id = "glm-5.1:cloud"; }
|
|
||||||
{ id = "gemma4:31b-cloud"; }
|
|
||||||
{ id = "devstral-small-2:24b-cloud"; }
|
|
||||||
{ id = "devstral-2:123b-cloud"; }
|
|
||||||
{ id = "cogito-2.1:671b-cloud"; }
|
|
||||||
{ id = "gemini-3-flash-preview:cloud"; }
|
|
||||||
{ id = "nematron-3-super:cloud"; }
|
|
||||||
{ id = "deepseek-v3.1:671b"; }
|
|
||||||
{ id = "deepseek-v3.2"; }
|
|
||||||
{ id = "deepseek-v4-flash"; }
|
|
||||||
{ id = "deepseek-v4-pro"; }
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -43,30 +44,31 @@
|
||||||
home.file.".pi/agent/settings.json" = {
|
home.file.".pi/agent/settings.json" = {
|
||||||
force = true;
|
force = true;
|
||||||
text = builtins.toJSON {
|
text = builtins.toJSON {
|
||||||
defaultProvider = "ollama-cloud";
|
defaultProvider = "ollama-cloud";
|
||||||
defaultModel = "deepseek-v4-pro";
|
defaultModel = "deepseek-v4-pro";
|
||||||
packages = [
|
packages = [
|
||||||
"npm:pi-subagents"
|
"npm:pi-subagents"
|
||||||
"npm:pi-mcp-adapter"
|
"npm:pi-mcp-adapter"
|
||||||
];
|
];
|
||||||
defaultThinkingLevel = "high";
|
defaultThinkingLevel = "high";
|
||||||
enableInstallTelemetry = false;
|
enableInstallTelemetry = false;
|
||||||
collapseChangelog = true;
|
collapseChangelog = true;
|
||||||
quietStartup = true;
|
quietStartup = true;
|
||||||
doubleEscapeAction = "tree";
|
doubleEscapeAction = "tree";
|
||||||
treeFilterMode = "default";
|
treeFilterMode = "default";
|
||||||
enabledModels = [
|
enabledModels = [
|
||||||
"ollama-cloud/deepseek-v4-flash"
|
"ollama-cloud/deepseek-v4-flash"
|
||||||
"ollama-cloud/kimi-k2.6:cloud"
|
"ollama-cloud/kimi-k2.6:cloud"
|
||||||
"ollama-cloud/glm-5.1:cloud"
|
"ollama-cloud/glm-5.1:cloud"
|
||||||
"ollama-cloud/gemma4:31b-cloud"
|
"ollama-cloud/gemma4:31b-cloud"
|
||||||
"ollama-cloud/devstral-small-2:24b-cloud"
|
"ollama-cloud/devstral-small-2:24b-cloud"
|
||||||
"ollama-cloud/devstral-2:123b-cloud"
|
"ollama-cloud/devstral-2:123b-cloud"
|
||||||
"ollama-cloud/cogito-2.1:671b-cloud"
|
"ollama-cloud/cogito-2.1:671b-cloud"
|
||||||
"ollama-cloud/gemini-3-flash-preview:cloud"
|
"ollama-cloud/gemini-3-flash-preview:cloud"
|
||||||
"ollama-cloud/nematron-3-super:cloud"
|
"ollama-cloud/nematron-3-super:cloud"
|
||||||
"ollama-cloud/deepseek-v3.1:671b"
|
"ollama-cloud/deepseek-v3.1:671b"
|
||||||
"ollama-cloud/deepseek-v3.2"
|
"ollama-cloud/deepseek-v3.2"
|
||||||
];
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue