feat(ai): try to added ai local model (my machine can`t do it sucsessfuly)

This commit is contained in:
Black_Raven committed 2026-07-03 22:53:21 +03:00
1 parent d4c6dc91b3
commit 3c61d0b1cd
6 files changed
+24 -9

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
Ai Agents plan for sucsessfuly installed it locally:
1) add all config files to your config
2) pull ollama image by command ```ollama pull qwen2.5-coder:7b```
3) start opencode by command ```ollama launch opencode```
4) use ollama by opencode sucsessfuly
+11
View File
@@ -0,0 +1,11 @@
{
zramSwap = {
enable = true;
algorithm = "lz4";
memoryPercent = 50;
};
swapDevices = [
{ device = "/swapfile"; size = 4096; }
];
}
+1
View File
@@ -8,6 +8,7 @@
./host/postgresql.nix
#./host/zapret-config.nix
./host/network.nix
#./host/ai-agent.nix
];
programs.hyprland.enable = true;
+6
View File
@@ -0,0 +1,6 @@
{ config, pkgs, ... }:{
services.ollama = {
enable = true;
package = pkgs.ollama; # или ollama-cuda
};
}
+1 -1
View File
@@ -5,7 +5,7 @@
lazygit
git
tree
zed-editor
opencode
postgresql
dbgate
];
-8
View File
@@ -1,8 +0,0 @@
И так это небольшая подсказка для тебя о том как пользоваться udisks:
Прежде всего перед монтированием диска тебе нужно понять какой раздел диска монтировать:
Для этого есть комманда: lsblk
Дальше думаю не тупой диск отличишь, прикол в том что он отмечен через sd??. вместо первого вопроса какая то буква, а вместо второго цифра
Далее команды: udisksctl mount -b /dev/sd?? --mount-point /home/USB-Disc - вмонтирует в соответсвующую папку.
udisksctl unmount -b /dev/sd?? --mount-point /home/USB-Disc - отмонтирует из папки
udisksctl power-off -b /dev/sda1 - отключит диск
Диск обязательно надо отключать!!!