feat: update opencode settings to use model version with bigger context.
This commit is contained in:
parent
22565726b3
commit
a95d2aaba4
2 changed files with 25 additions and 3 deletions
|
|
@ -28,7 +28,7 @@
|
|||
programs.opencode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
model = "ollama/gpt-oss:20b";
|
||||
model = "ollama/gpt-oss-20b-high-32k";
|
||||
provider = {
|
||||
ollama = {
|
||||
npm = "@ai-sdk/openai-compatible";
|
||||
|
|
@ -37,10 +37,16 @@
|
|||
baseURL = "http://127.0.0.1:11434/v1";
|
||||
};
|
||||
models = {
|
||||
"gpt-oss:20b" = {
|
||||
name = "gpt-oss:20b";
|
||||
"gpt-oss-20b-high-32k" = {
|
||||
name = "gpt oss";
|
||||
id = "gpt-oss-20b-32k";
|
||||
reasoning = true;
|
||||
tools = true;
|
||||
options = {
|
||||
extraBody = {
|
||||
think = "high";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
16
modules/servers/general/fail2ban.nix
Normal file
16
modules/servers/general/fail2ban.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{...}: {
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
maxretry = 5;
|
||||
ignoreIP = [
|
||||
"65.21.241.194"
|
||||
];
|
||||
bantime = "24h"; # Ban IPs for one day on the first ban
|
||||
bantime-increment = {
|
||||
enable = true; # Enable increment of bantime after each violation
|
||||
multipliers = "1 2 4 8 16 32 64";
|
||||
maxtime = "168h"; # Do not ban for more than 1 week
|
||||
overalljails = true; # Calculate the bantime based on all the violations
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue