This commit is contained in:
soraefir
2026-01-21 11:42:02 +01:00
parent 4943b90476
commit 9019ba84e3
5 changed files with 20 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
{ lib, config, pkgs, ... }:
let
ollamaPkg = pkgs.ollama-rocm;
in{
config = lib.mkIf (config.syscfg.make.develop) {
services.ollama = {
enable = true;
package = ollamaPkg;
acceleration = "rocm";
loadModels = [ "deepseek-v2:lite" "qwen2.5-coder:7b" "qwen2.5-coder:1.5b" ];
syncModels = true;
};
environment.systemPackages = with pkgs; [ ollamaPkg ];
};
}