ollama: init

This commit is contained in:
ooks-io 2025-01-29 17:26:11 +11:00
parent bf49665871
commit 377bd48ee5
4 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{
lib,
config,
...
}: let
inherit (lib) mkIf;
cfg = config.ooknet.workstation.programs.ollama;
in {
config = mkIf cfg.enable {
# FIXME:
# https://github.com/NixOS/nixpkgs/issues/376930
services.ollama = {
enable = true;
acceleration = "rocm";
rocmOverrideGfx = "10.1.0";
environmentVariables = {
HCC_AMDGPU_TARGET = "gfx1010";
};
};
};
}