twiddling with AI integration
This commit is contained in:
parent
a145fad398
commit
a9e78be414
4 changed files with 5 additions and 1 deletions
|
@ -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"}";
|
||||
|
|
|
@ -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"}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue