twiddling with AI integration

This commit is contained in:
atagen 2024-05-01 16:01:21 +10:00
parent a145fad398
commit a9e78be414
4 changed files with 5 additions and 1 deletions

View file

@ -20,8 +20,10 @@
Service = let
docker = lib.getExe pkgs.docker;
in {
ExecStartPre = "bash -c '${docker} inspect open-webui || ${docker} create -e PORT=3021 --network host --gpus all -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama'";
Type = "exec";
ExecStartPre = "-${docker} create -e PORT=3021 --network host --gpus all -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama";
ExecStart = "${docker} start open-webui";
ExecStop = "${docker} stop open-webui";
};
};
};
@ -30,6 +32,7 @@
open-webui = {
name = "Ollama OpenWebUI";
type = "Application";
icon = ../icons/openwebui.png;
exec = "${let
notify-send = "${lib.getExe' pkgs.libnotify "notify-send"}";
systemctl = "${lib.getExe' pkgs.systemd "systemctl"}";

View file

@ -32,6 +32,7 @@
stable-diffusion = {
name = "Stable Diffusion";
type = "Application";
icon = ../icons/comfyui.png;
exec = "${let
notify-send = "${lib.getExe' pkgs.libnotify "notify-send"}";
systemctl = "${lib.getExe' pkgs.systemd "systemctl"}";