feat: added comfy ui

This commit is contained in:
Nick 2025-07-18 17:21:16 -05:00
parent 9598576855
commit b94b8b2ba4

View file

@ -9,42 +9,48 @@ let
cfg = config.services.comfyui;
in
{
options.services.comfyui = with lib; {
enable = mkEnableOption "ComfyUI service";
imports = [ ];
package = mkOption {
type = types.package;
default = pkgs.comfyuiPackages.comfyui.override {
extensions = with pkgs.comfyuiPackages.extensions; [
acly-inpaint
acly-tooling
cubiq-ipadapter-plus
fannovel16-controlnet-aux
];
commandLineArgs = [
"--preview-method"
"auto"
];
options = {
services.comfyui = with lib; {
enable = mkEnableOption "ComfyUI service";
package = mkOption {
type = types.package;
default = pkgs.comfyuiPackages.comfyui.override {
extensions = with pkgs.comfyuiPackages.extensions; [
# Add desired extensions here
# Example extensions:
# acly-inpaint
# acly-tooling
# cubiq-ipadapter-plus
# fannovel16-controlnet-aux
];
commandLineArgs = [
"--preview-method"
"auto"
];
};
description = "The ComfyUI package to use";
};
description = "The ComfyUI package to use";
};
port = mkOption {
type = types.port;
default = 8188;
description = "Port to listen on";
};
port = mkOption {
type = types.port;
default = 8188;
description = "Port to listen on";
};
host = mkOption {
type = types.str;
default = "0.0.0.0";
description = "Host to bind to";
};
host = mkOption {
type = types.str;
default = "127.0.0.1";
description = "Host to bind to";
};
openFirewall = mkOption {
type = types.bool;
default = false;
description = "Open ports in the firewall";
openFirewall = mkOption {
type = types.bool;
default = false;
description = "Open ports in the firewall";
};
};
};
@ -79,19 +85,4 @@ in
users.groups.comfyui = { };
};
services.comfyui = {
enable = true;
package = pkgs.comfyuiPackages.comfyui.override {
extensions = with pkgs.comfyuiPackages.extensions; [
acly-inpaint
acly-tooling
cubiq-ipadapter-plus
fannovel16-controlnet-aux
];
commandLineArgs = [
"--preview-method"
"auto"
];
};
};
}