31 lines
634 B
Nix
31 lines
634 B
Nix
{ config, lib, pkgs, unstable, ... }:
|
|
|
|
let
|
|
dn = "comfyui.tfcconnection.org";
|
|
port = 4567;
|
|
in with lib;
|
|
{
|
|
services = {
|
|
comfyui = {
|
|
enable = true;
|
|
host = "0.0.0.0";
|
|
port = port;
|
|
models = builtins.attrValues pkgs.nixified-ai.models;
|
|
acceleration = "cuda";
|
|
customNodes = with pkgs.nixified-ai.comfyui.pkgs; [
|
|
comfyui-gguf
|
|
comfyui-impact-pack
|
|
|
|
];
|
|
};
|
|
nginx.virtualHosts.${dn} = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:${toString port}";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
}
|