workstations | added ollama
This commit is contained in:
parent
f15b8e4478
commit
2ff4e6678b
1 changed files with 19 additions and 0 deletions
19
hosts/workstation/ollama.nix
Normal file
19
hosts/workstation/ollama.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.ollama;
|
||||
in {
|
||||
options.ollama = {enable = mkEnableOption "is ollama host";};
|
||||
config = mkIf cfg.enable {
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
package = pkgs.ollama-rocm;
|
||||
# Optional: preload models, see https://ollama.com/library
|
||||
loadModels = ["qwen2.5-coder:1.5b"];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue