From de4530784f100558fe43bce97cae27d229b7bb6e Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Wed, 15 Apr 2026 13:34:20 -0400 Subject: [PATCH] working comfyui --- bin/skyg | 4 ++-- modules/nixos/server/services/comfyui/rocm-docker.nix | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/bin/skyg b/bin/skyg index 4c92b08..587d465 100755 --- a/bin/skyg +++ b/bin/skyg @@ -15,9 +15,9 @@ def valid_remote_profiles [] { def is-valid-profile [name: string, on_remote: bool = false] { if $on_remote { - (valid_remote_profiles | where name == $name | length) == 1 + (valid_remote_profiles | where {|$it| $it == $name} | length) == 1 } else { - (valid_profiles | where name == $name | length) == 1 + (valid_profiles | where {|$it| $it == $name} | length) == 1 } } diff --git a/modules/nixos/server/services/comfyui/rocm-docker.nix b/modules/nixos/server/services/comfyui/rocm-docker.nix index ed69aa0..4cce8e6 100644 --- a/modules/nixos/server/services/comfyui/rocm-docker.nix +++ b/modules/nixos/server/services/comfyui/rocm-docker.nix @@ -102,6 +102,9 @@ in "d ${cfg.rocm.dataDir}/models/controlnet 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -" "d ${cfg.rocm.dataDir}/output 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -" "d ${cfg.rocm.dataDir}/custom_nodes 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -" + "d ${cfg.rocm.dataDir}/user 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -" + "d ${cfg.rocm.dataDir}/input 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -" + "d ${cfg.rocm.dataDir}/temp 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -" ]; # Build script for the Docker image @@ -152,6 +155,9 @@ in volumes = [ "${cfg.rocm.dataDir}/custom_nodes:/workspace/ComfyUI/custom_nodes" + "${cfg.rocm.dataDir}/user:/workspace/ComfyUI/user" + "${cfg.rocm.dataDir}/input:/workspace/ComfyUI/input" + "${cfg.rocm.dataDir}/temp:/workspace/ComfyUI/temp" ] ++ (if cfg.rocm.modelsDir != null then [ "${cfg.rocm.modelsDir}:/workspace/ComfyUI/models" ] else [ "${cfg.rocm.dataDir}/models:/workspace/ComfyUI/models" ]) @@ -165,10 +171,6 @@ in systemd.services."docker-comfyui" = { after = [ "docker.service" ]; requires = [ "docker.service" ]; - serviceConfig = { - Restart = "on-failure"; - RestartSec = "10s"; - }; }; }; }