ollama: init
This commit is contained in:
parent
bf49665871
commit
377bd48ee5
4 changed files with 25 additions and 0 deletions
21
modules/nixos/workstation/services/ollama.nix
Normal file
21
modules/nixos/workstation/services/ollama.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue