mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-09 05:14:41 -05:00
feat: added comfy ui
This commit is contained in:
parent
02eb4737b9
commit
758f235736
3 changed files with 102 additions and 49 deletions
|
@ -1,55 +1,19 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.machines.devices) ceres;
|
||||
inherit (flake.config.services.instances) comfyui web;
|
||||
inherit (flake.config.people) user0;
|
||||
service = comfyui;
|
||||
localhost = web.localhost.address1;
|
||||
in
|
||||
{
|
||||
|
||||
services.comfyui = {
|
||||
enable = true;
|
||||
# package = pkgs.comfyui-nvidia;
|
||||
host = localhost;
|
||||
user = service.name;
|
||||
acceleration = "cuda";
|
||||
# models = builtins.attrValues {
|
||||
# inherit (pkgs.nixified-ai)
|
||||
# models
|
||||
# ;
|
||||
# };
|
||||
# customNodes = builtins.attrValues {
|
||||
# inherit (comfyui.pkgs)
|
||||
# comfyui-gguf
|
||||
# comfyui-impact-pack
|
||||
# ;
|
||||
# };
|
||||
};
|
||||
fileSystems."/var/lib/${service.name}" = {
|
||||
device = service.paths.path0;
|
||||
fsType = "none";
|
||||
options = [
|
||||
"bind"
|
||||
];
|
||||
depends = [
|
||||
ceres.storage0.mount
|
||||
];
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"Z ${service.paths.path0} 755 ${service.name} ${service.name} -"
|
||||
];
|
||||
|
||||
networking = {
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
service.ports.port0
|
||||
openFirewall = true;
|
||||
host = "0.0.0.0"; # Allow external connections
|
||||
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