refactor: move services/open-webui.nix to services/llm.nix

This commit is contained in:
Felix Schröter 2025-07-21 20:54:19 +02:00
parent 07ba36b543
commit 2daf2e5c58
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 2 additions and 2 deletions

34
services/llm.nix Normal file
View file

@ -0,0 +1,34 @@
{
config,
inputs,
pkgs,
...
}:
{
disabledModules = [
"services/misc/ollama.nix"
"services/misc/open-webui.nix"
];
imports = [
"${inputs.nixpkgs-unstable}/nixos/modules/services/misc/ollama.nix"
"${inputs.nixpkgs-unstable}/nixos/modules/services/misc/open-webui.nix"
];
services.ollama = {
enable = true;
package = pkgs.unstable.ollama;
};
services.open-webui = {
enable = true;
package = pkgs.unstable.open-webui;
host = "0.0.0.0";
port = 11111;
environment = {
WEBUI_AUTH = "False";
OLLAMA_API_BASE_URL = "http://127.0.0.1:${toString config.services.ollama.port}";
};
};
}