working comfyui

This commit is contained in:
ari committed 2026-04-15 13:34:20 -04:00
1 parent 92df288796
commit de4530784f
2 files changed
+8 -6

No files matched your search

+2 -2
View File
@@ -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
}
}
@@ -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";
};
};
};
}