1

Services/Comfyui: Disable service

This commit is contained in:
2026-04-14 11:05:49 +02:00
parent 57b8980ebe
commit 7e3985bd34
2 changed files with 30 additions and 10 deletions

View File

@ -12,7 +12,7 @@
./disks.nix ./disks.nix
# General services # General services
../services/comfyui.nix # ../services/comfyui.nix
../services/fileflows-node.nix ../services/fileflows-node.nix
]; ];

View File

@ -6,7 +6,9 @@
... ...
}: let }: let
# comfyuiVersion = "cu128-slim-20260316"; # comfyuiVersion = "cu128-slim-20260316";
comfyuiVersion = "cu128-megapak-20260323"; # comfyuiVersion = "cu128-megapak-20260413";
# comfyuiVersion = "cu130-megapak-pt211-20260330";
comfyuiVersion = "cu130-megapak-pt211-20260413";
in { in {
virtualisation.oci-containers.containers = { virtualisation.oci-containers.containers = {
comfyui = { comfyui = {
@ -24,13 +26,28 @@ in {
volumes = let volumes = let
rootDir = "/home/christoph/Games/ComfyUI"; rootDir = "/home/christoph/Games/ComfyUI";
in [ in [
"${rootDir}/storage:/root" # cu128-slim / cu128-megapak
# "${rootDir}/storage:/root"
# "${rootDir}/storage-models/models:/root/ComfyUI/models"
# "${rootDir}/storage-models/hf-hub:/root/.cache/huggingface/hub"
# "${rootDir}/storage-models/torch-hub:/root/.cache/torch/hub"
# "${rootDir}/storage-user/input:/root/ComfyUI/input"
# "${rootDir}/storage-user/output:/root/ComfyUI/output"
# "${rootDir}/storage-user/workflows:/root/ComfyUI/user/default/workflows"
# cu130-megapak
"${rootDir}/storage-cache/dot-cache:/root/.cache"
"${rootDir}/storage-cache/dot-config:/root/.config"
"${rootDir}/storage-nodes/dot-local:/root/.local"
"${rootDir}/storage-nodes/comfy-extras:/root/ComfyUI/comfy_extras"
"${rootDir}/storage-nodes/custom_nodes:/root/ComfyUI/custom_nodes"
"${rootDir}/storage-models/models:/root/ComfyUI/models" "${rootDir}/storage-models/models:/root/ComfyUI/models"
"${rootDir}/storage-models/hf-hub:/root/.cache/huggingface/hub" "${rootDir}/storage-models/hf-hub:/root/.cache/huggingface/hub"
"${rootDir}/storage-models/torch-hub:/root/.cache/torch/hub" "${rootDir}/storage-models/torch-hub:/root/.cache/torch/hub"
"${rootDir}/storage-user/input:/root/ComfyUI/input" "${rootDir}/storage-user/input:/root/ComfyUI/input"
"${rootDir}/storage-user/output:/root/ComfyUI/output" "${rootDir}/storage-user/output:/root/ComfyUI/output"
"${rootDir}/storage-user/workflows:/root/ComfyUI/user/default/workflows" "${rootDir}/storage-user/user-profile:/root/ComfyUI/user"
"${rootDir}/storage-user/user-scripts:/root/user-scripts"
]; ];
environment = { environment = {
@ -39,12 +56,15 @@ in {
TZ = "Europe/Berlin"; TZ = "Europe/Berlin";
# https://github.com/Comfy-Org/ComfyUI/blob/master/comfy/cli_args.py # https://github.com/Comfy-Org/ComfyUI/blob/master/comfy/cli_args.py
# --use-sage-attention # => OOM CLI_ARGS = lib.concatStringsSep " " [
# --lowvram # "--cache-none" # Leads to single nodes being executed multiple times for each output connection :/
# --disable-pinned-memory "--lowvram"
# --cache-none "--disable-smart-memory"
# --reserve-vram 1 # (1 or 2) => Assume less vram is available to mitigate OOM due to wrong vram estimation "--disable-pinned-memory"
# CLI_ARGS = "--lowvram --disable-pinned-memory --cache-none --reserve-vram 2"; "--disable-xformers"
"--use-sage-attention" # Crashes
# "--reserve-vram 1" # (1 or 2) => Assume less vram is available to mitigate OOM due to wrong vram estimation
];
}; };
extraOptions = [ extraOptions = [