dotfiles/modules/config/instances/config/comfyui.nix
2025-10-09 04:41:23 -05:00

41 lines
649 B
Nix
Executable file

{ moduleFunctions }:
let
inherit (moduleFunctions.instancesFunctions)
domain0
servicePath
sslPath
sopsPath
;
label = "ComfyUI";
name = "comfyui";
subdomain = "comfyui";
domain = "${subdomain}.${domain0}";
in
{
label = label;
name = name;
short = label;
sops = {
path0 = "${sopsPath}/${name}";
};
domains = {
url0 = domain;
};
subdomain = subdomain;
tags = [
name
"comfy"
"ui"
];
paths = {
path0 = "${servicePath}/${label}";
};
ports = {
port0 = 8188;
};
ssl = {
cert = "${sslPath}/${domain}/fullchain.pem";
key = "${sslPath}/${domain}/key.pem";
};
}