diff --git a/services/ollama-webui.nix b/services/ollama-webui.nix deleted file mode 100644 index 6d91f02..0000000 --- a/services/ollama-webui.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ config, pkgs, lib, ... }: -let - openWebuiImage = "ghcr.io/open-webui/open-webui:main"; -in -{ - virtualisation.oci-containers = { - backend = { - image = openWebuiImage; - cmd = [ "-d" "--network=host" "-v" "open-webui:/app/backend/data" "--name" "open-webui" "--restart" "always" ]; - volumes = [ "open-webui:/app/backend/data" ]; - environment = { - OLLAMA_BASE_URL = "http://127.0.0.1:11434"; - }; - restart = "always"; - }; - }; - - services.nginx.virtualHosts."chat.${config.networking.hostName}.${config.networking.domain}" = { - forceSSL = true; - #useACMEHost = config.networking.domain; #not sure if this will work, unless - locations."/" = { - proxyWebsockets = true; - proxyPass = "http://${config.services.ollama.listenAddress}"; - }; - basicAuthFile = config.sops.secrets."nginx/defaultpass".path; - }; -} \ No newline at end of file diff --git a/services/ollamaWebui.nix b/services/ollamaWebui.nix index 92571bb..1edd898 100644 --- a/services/ollamaWebui.nix +++ b/services/ollamaWebui.nix @@ -2,6 +2,8 @@ { environment.systemPackages = [ pkgs.unstable.open-webui + pkgs.gvisor + ];