feat: disable unused stuff

This commit is contained in:
uttarayan21
2025-08-09 15:26:00 +05:30
parent 0d4a856cdc
commit 292749e5c9
7 changed files with 48 additions and 38 deletions

6
flake.lock generated
View File

@@ -1701,11 +1701,11 @@
"ik_llama": { "ik_llama": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1754576781, "lastModified": 1754653098,
"narHash": "sha256-DeXIbHb5RtPn70Tg+s90oxq7EDxHRlB1wi8UuJ1v00E=", "narHash": "sha256-GyIIE9uSUv7Ipljk6lPJobtiHqEZNsl8bcO1MDq42DI=",
"owner": "ikawrakow", "owner": "ikawrakow",
"repo": "ik_llama.cpp", "repo": "ik_llama.cpp",
"rev": "58f3bda0ae66e2ddf9e09ed7fe2b6242b0f8bb73", "rev": "293f4aa433d1d38811d0f23328fa05289dbc30d6",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -45,33 +45,37 @@
{ {
type = "openai-compatible"; type = "openai-compatible";
name = "ryu"; name = "ryu";
api_base = "https://ollama.ryu.darksailor.dev/v1"; api_base = "https://llama.ryu.darksailor.dev/v1";
models = [ models = [
{ {
name = "RobinBially/nomic-embed-text-8k"; name = "gpt-oss-20b";
type = "embedding";
default_chunk_size = 8000;
}
{
name = "deepseek-r1:7b";
type = "chat";
}
{
name = "qwen3:30b-a3b";
type = "chat";
}
{
name = "deepseek-r1:14b";
type = "chat";
}
{
name = "qwen3:8b";
type = "chat";
}
{
name = "qwen3:14b";
type = "chat"; type = "chat";
} }
# {
# name = "RobinBially/nomic-embed-text-8k";
# type = "embedding";
# default_chunk_size = 8000;
# }
# {
# name = "deepseek-r1:7b";
# type = "chat";
# }
# {
# name = "qwen3:30b-a3b";
# type = "chat";
# }
# {
# name = "deepseek-r1:14b";
# type = "chat";
# }
# {
# name = "qwen3:8b";
# type = "chat";
# }
# {
# name = "qwen3:14b";
# type = "chat";
# }
]; ];
} }
{ {

View File

@@ -17,7 +17,7 @@ in {
type = attrsOf str; type = attrsOf str;
default = {}; default = {};
description = '' description = ''
Urls that will be fetched ~/.config/tuifeed/urls.yml Sources that will be fetched
''; '';
example = {}; example = {};
}; };
@@ -29,7 +29,7 @@ in {
"show-timestamp" = true; "show-timestamp" = true;
}; };
description = '' description = ''
Urls that will be fetched ~/.config/tuifeed/urls.yml Options for article titles, such as showing the author and timestamp.
''; '';
example = {}; example = {};
}; };

View File

@@ -15,11 +15,11 @@
}; };
# package = pkgs.ik_llama; # package = pkgs.ik_llama;
}; };
# caddy = { caddy = {
# virtualHosts."llama.ryu.darksailor.dev".extraConfig = '' virtualHosts."llama.ryu.darksailor.dev".extraConfig = ''
# import hetzner import hetzner
# reverse_proxy localhost:${builtins.toString config.services.llama-cpp.port} reverse_proxy localhost:${builtins.toString config.services.llama-cpp.port}
# ''; '';
# }; };
}; };
} }

View File

@@ -5,7 +5,7 @@
... ...
}: { }: {
sops = { sops = {
secrets."minecraft/craftmine".owner = "minecraft"; secrets."minecraft/craftmine" = {};
templates = { templates = {
"craftmine.env".content = '' "craftmine.env".content = ''
CRAFTMINE_RCON_PASSWORD=${config.sops.placeholder."minecraft/craftmine"} CRAFTMINE_RCON_PASSWORD=${config.sops.placeholder."minecraft/craftmine"}
@@ -22,7 +22,7 @@
}; };
in { in {
minecraft-servers = { minecraft-servers = {
enable = true; enable = false;
eula = true; eula = true;
openFirewall = true; openFirewall = true;
environmentFile = config.sops.templates."craftmine.env".path; environmentFile = config.sops.templates."craftmine.env".path;
@@ -66,7 +66,7 @@
# }; # };
craftmine-v2 = { craftmine-v2 = {
inherit whitelist; inherit whitelist;
enable = true; enable = false;
jvmOpts = "-Xmx16G -Xms8G"; jvmOpts = "-Xmx16G -Xms8G";
package = let package = let
getJavaVersion = v: (builtins.getAttr "openjdk${toString v}" pkgs.javaPackages.compiler).headless; getJavaVersion = v: (builtins.getAttr "openjdk${toString v}" pkgs.javaPackages.compiler).headless;

View File

@@ -6,7 +6,7 @@
}: { }: {
services = { services = {
ollama = { ollama = {
enable = true; enable = false;
host = "0.0.0.0"; host = "0.0.0.0";
# loadModels = ["deepseek-r1:7b" "deepseek-r1:14b" "RobinBially/nomic-embed-text-8k" "qwen3:8b" "qwen3:14b"]; # loadModels = ["deepseek-r1:7b" "deepseek-r1:14b" "RobinBially/nomic-embed-text-8k" "qwen3:8b" "qwen3:14b"];
port = 11434; port = 11434;

View File

@@ -128,6 +128,12 @@
llama-cpp = prev.llama-cpp.overrideAttrs (oldAttrs: { llama-cpp = prev.llama-cpp.overrideAttrs (oldAttrs: {
src = inputs.llama-cpp; src = inputs.llama-cpp;
version = "b6116"; version = "b6116";
cmakeFlags =
oldAttrs.cmakeFlags
++ [
"-DLLAMA_CUDA=ON"
"-DGGML_CUDA_FORCE_CUBLAS=ON"
];
}); });
python312 = prev.python312.override { python312 = prev.python312.override {
packageOverrides = final: prev: { packageOverrides = final: prev: {