init
This commit is contained in:
19
custom/ai.nix
Normal file
19
custom/ai.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{config, pkgs, pkgs-stable, ...}:{
|
||||
|
||||
services.open-webui = {
|
||||
package = pkgs-stable.open-webui; # pkgs must be from stable, for example nixos-24.11
|
||||
enable = true;
|
||||
port = 8083;
|
||||
environment = {
|
||||
ANONYMIZED_TELEMETRY = "False";
|
||||
DO_NOT_TRACK = "True";
|
||||
SCARF_NO_ANALYTICS = "True";
|
||||
OLLAMA_API_BASE_URL = "http://127.0.0.1:11434/api";
|
||||
OLLAMA_BASE_URL = "http://127.0.0.1:11434";
|
||||
};
|
||||
};
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
package = pkgs.ollama-rocm;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user