{"id":14967954,"url":"https://github.com/dyscorv/nix-comfyui","last_synced_at":"2025-08-24T11:12:12.943Z","repository":{"id":246910298,"uuid":"823982729","full_name":"dyscorv/nix-comfyui","owner":"dyscorv","description":"ComfyUI as a Nix expression","archived":false,"fork":false,"pushed_at":"2024-12-12T23:04:46.000Z","size":1361,"stargazers_count":40,"open_issues_count":8,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T10:51:14.178Z","etag":null,"topics":["comfyui","flakes","nix","nix-flake","nix-flakes","nixos"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dyscorv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-04T06:18:51.000Z","updated_at":"2025-01-31T04:00:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce8a9ac0-a80d-4de7-bcf2-87ed481095fa","html_url":"https://github.com/dyscorv/nix-comfyui","commit_stats":{"total_commits":68,"total_committers":2,"mean_commits":34.0,"dds":"0.36764705882352944","last_synced_commit":"b80947a30a0ec9c683cbfb840f689e18c562fc3f"},"previous_names":["dyscorv/nix-comfyui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyscorv%2Fnix-comfyui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyscorv%2Fnix-comfyui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyscorv%2Fnix-comfyui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyscorv%2Fnix-comfyui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyscorv","download_url":"https://codeload.github.com/dyscorv/nix-comfyui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238212446,"owners_count":19434955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comfyui","flakes","nix","nix-flake","nix-flakes","nixos"],"created_at":"2024-09-24T13:38:59.621Z","updated_at":"2025-02-11T00:31:30.178Z","avatar_url":"https://github.com/dyscorv.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nix-comfyui\n\nComfyUI as a Nix expression. Give it a try:\n\n```sh\n# ComfyUI is patched to keep models and other runtime data in $PWD.\nmkdir comfyui \u0026\u0026 cd comfyui\n# Run ComfyUI with all custom nodes packaged by this flake.\nnix run github:dyscorv/nix-comfyui#comfyui-with-extensions\n```\n\nThen setup and run Krita with ComfyUI integration:\n\n```sh\n# Change to the same directory in another terminal window.\ncd comfyui\n# Download the models required by \"Generative AI for Krita\".\nnix run github:dyscorv/nix-comfyui#krita-ai-diffusion -- --recommended --verbose .\n# Run Krita with ComfyUI integration.\nnix run github:dyscorv/nix-comfyui#krita-with-extensions\n```\n\n## Usage with Nix Flakes\n\nThis project is a Nix flake which can be used as an input for another flake.\n\n```nix\n{\n  inputs = {\n    nix-comfyui.url = \"github:dyscorv/nix-comfyui\";\n    # nix-comfyui.inputs.flake-utils.follows = \"flake-utils\";\n    # nix-comfyui.inputs.nixpkgs.follows = \"nixpkgs\";\n    # nix-comfyui.inputs.poetry2nix.follows = \"poetry2nix\";\n  };\n}\n```\n\nThe flake provides a nixpkgs overlay, which simply adds the `comfyuiPackages`\nscope without modifying any other thing in the original pkgs.\n\n```nix\nlet\n  pkgs = import inputs.nixpkgs {\n    system = \"x86_64-linux\";\n    overlays = [\n      inputs.nix-comfyui.overlays.default\n    ];\n  };\nin\n```\n\n## ComfyUI and Custom Nodes\n\n`comfyui` is vanilla ComfyUI without any custom nodes. This derivation can be\nused as a starting point for building an installation containing only a selected\nfew nodes.\n\n```nix\n{ pkgs, ... }:\n\nlet\n  my-comfyui = pkgs.comfyuiPackages.comfyui.override {\n    extensions = [\n      pkgs.comfyuiPackages.extensions.acly-inpaint\n      pkgs.comfyuiPackages.extensions.acly-tooling\n      pkgs.comfyuiPackages.extensions.cubiq-ipadapter-plus\n      pkgs.comfyuiPackages.extensions.fannovel16-controlnet-aux\n    ];\n\n    commandLineArgs = [\n      \"--preview-method\"\n      \"auto\"\n    ];\n  };\nin\n\n{\n  environment.systemPackages = [\n    my-comfyui\n  ];\n}\n```\n\n## Krita with ComfyUI Integration\n\nThe Krita plugin is available from `krita-ai-diffusion`. The variant of Krita\nwhich comes with this plugin is called `krita-with-extensions`.\n\n```diff\n { pkgs, ... }:\n \n {\n   environment.systemPackages = [\n-    pkgs.krita\n+    pkgs.comfyuiPackages.krita-with-extensions\n   ];\n }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyscorv%2Fnix-comfyui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyscorv%2Fnix-comfyui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyscorv%2Fnix-comfyui/lists"}