update ollama

This commit is contained in:
Buliway 2026-04-30 23:38:16 +03:00
parent 02c91f3b93
commit 58ecb31a4b
4 changed files with 60 additions and 51 deletions

6
flake.lock generated
View file

@ -194,11 +194,11 @@
}, },
"nixpkgs2": { "nixpkgs2": {
"locked": { "locked": {
"lastModified": 1775036866, "lastModified": 1777268161,
"narHash": "sha256-ZojAnPuCdy657PbTq5V0Y+AHKhZAIwSIT2cb8UgAz/U=", "narHash": "sha256-bxrdOn8SCOv8tN4JbTF/TXq7kjo9ag4M+C8yzzIRYbE=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6201e203d09599479a3b3450ed24fa81537ebc4e", "rev": "1c3fe55ad329cbcb28471bb30f05c9827f724c76",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -42,7 +42,7 @@
f = "fastfetch"; f = "fastfetch";
b = "bat --color=always -p --pager='-r'"; # Веди себя как cat, но с цветами b = "bat --color=always -p --pager='-r'"; # Веди себя как cat, но с цветами
yt = "yt-dlp --cookies /home/buliway/backups/Media/yt-dlp/cookies.firefox-private.txt"; yt = "yt-dlp --cookies /mnt/backups/Media/yt-dlp/cookies.firefox-private.txt";
yt-dir = "cd /mnt/backups/Media/yt-dlp"; yt-dir = "cd /mnt/backups/Media/yt-dlp";
yt-music = "yt-dlp --config-locations music.conf | sed '/has already been recorded in the archive/d'"; yt-music = "yt-dlp --config-locations music.conf | sed '/has already been recorded in the archive/d'";
yt-video = "yt-dlp --config-locations video.conf | sed '/has already been recorded in the archive/d'"; yt-video = "yt-dlp --config-locations video.conf | sed '/has already been recorded in the archive/d'";

View file

@ -14,13 +14,13 @@
firewall.enable = false; firewall.enable = false;
}; };
services.v2raya = { # services.v2raya = {
enable = true; # enable = true;
cliPackage = pkgs2.xray; # cliPackage = pkgs2.xray;
}; # };
programs = { programs = {
amnezia-vpn.enable = true; # amnezia-vpn.enable = true;
throne = { throne = {
enable = true; enable = true;
tunMode = { tunMode = {

View file

@ -46,20 +46,29 @@
# flatpak install flathub com.github.tchx84.Flatseal # flatpak install flathub com.github.tchx84.Flatseal
enable = true; enable = true;
}; };
# ollama = { # Настройки для amd видеокарт серии rx6000 ollama = { # Настройки для amd видеокарт серии rx6000
# enable = true; enable = true;
# # acceleration = "rocm"; # Не работает на новых версиях nixos package = pkgs2.ollama-vulkan;
# host = "0.0.0.0"; # models = "/mnt/backups/AI/ollama/models";
# port = 11434; host = "0.0.0.0";
# openFirewall = true; port = 11434;
# package = pkgs2.ollama; openFirewall = true;
# rocmOverrideGfx = "10.3.0"; rocmOverrideGfx = "10.3.0";
# }; };
# open-webui = { # WebUI для ollama # open-webui = { # WebUI для ollama
# enable = true; # enable = true;
# package = pkgs2.open-webui; # package = pkgs2.open-webui;
# # stateDir = "/mnt/backups/AI/open-webui";
# port = 11435; # default 8080 # port = 11435; # default 8080
# host = "0.0.0.0";
# openFirewall = true; # openFirewall = true;
# environment = {
# ANONYMIZED_TELEMETRY = "False";
# DO_NOT_TRACK = "True";
# SCARF_NO_ANALYTICS = "True";
# OLLAMA_API_BASE_URL = "http://127.0.0.1:11434";
# WEBUI_AUTH = "False";
# };
# }; # };
}; };
@ -69,38 +78,38 @@
libraries = with pkgs2; [ libraries = with pkgs2; [
stdenv.cc.cc stdenv.cc.cc
# Nekoray (Throne) # Nekoray (Throne)
kdePackages.qtbase # kdePackages.qtbase
kdePackages.qttools # kdePackages.qttools
kdePackages.qtwayland # kdePackages.qtwayland
kdePackages.qtsvg # kdePackages.qtsvg
kdePackages.qtimageformats # kdePackages.qtimageformats
util-linux # util-linux
zlib # zlib
zstd # zstd
mesa # mesa
libGL # libGL
libglvnd # libglvnd
libxkbcommon # libxkbcommon
freetype # freetype
fontconfig # fontconfig
libx11 # libx11
libxext # libxext
libxrandr # libxrandr
libxrender # libxrender
libxcursor # libxcursor
libxxf86vm # libxxf86vm
libxi # libxi
libxcb # libxcb
libxfixes # libxfixes
libxcb-util # libxcb-util
libxcb-keysyms # libxcb-keysyms
libxcb-wm # libxcb-wm
libxcb-image # libxcb-image
libxcb-render-util # libxcb-render-util
xcb-util-cursor # xcb-util-cursor
glib # glib
dbus # dbus
krb5 # krb5
]; ];
}; };
zsh.enable = true; zsh.enable = true;