mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-08 21:04:38 -05:00
feat: added comfy ui
This commit is contained in:
parent
9598576855
commit
b94b8b2ba4
1 changed files with 37 additions and 46 deletions
|
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue