23 lines
509 B
Nix
23 lines
509 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (lib) getExe;
|
|
inherit (config.home) homeDirectory;
|
|
in {
|
|
localWebApps = {
|
|
stable-diffusion = {
|
|
name = "Stable Diffusion (ComfyUI)";
|
|
genericName = "Stable Diffusion";
|
|
icon = ./icons/comfyui.png;
|
|
id = 5;
|
|
port = 7860;
|
|
service = {
|
|
WorkingDirectory = "${homeDirectory}/code/etc/stable-diffusion-webui-docker";
|
|
ExecStart = "${getExe pkgs.docker} compose --profile comfy up --build";
|
|
};
|
|
};
|
|
};
|
|
}
|