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

@ -25,6 +25,8 @@
browser = "firefox";
terminal = "ghostty";
};
# FIXME
programs.ollama.enable = false;
};
console = {
profile = "standard";

View file

@ -29,6 +29,7 @@ in {
firefox.enable = mkEnableOption "";
foot.enable = mkEnableOption "";
ghostty.enable = mkEnableOption "";
ollama.enable = mkEnableOption "";
};
};
}

View file

@ -3,5 +3,6 @@
./dbus.nix
./gnome-services.nix
./geoclue.nix
./ollama.nix
];
}

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";
};
};
};
}