tfc-nixos/modules/comfyui.nix
2025-05-16 22:13:24 -05:00

31 lines
626 B
Nix

{ config, lib, pkgs, unstable, comfyui, ... }:
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 comfyui.pkgs; [
comfyui-gguf
comfyui-impact-pack
];
};
nginx.virtualHosts.${dn} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:${toString port}";
proxyWebsockets = true;
};
};
};
}