{"id":28136960,"url":"https://github.com/janrupf/stable-diffusion-webui-nix","last_synced_at":"2025-05-14T16:21:29.275Z","repository":{"id":230999230,"uuid":"780588639","full_name":"Janrupf/stable-diffusion-webui-nix","owner":"Janrupf","description":"Flake for running upstream stable diffusion webui on Nix","archived":false,"fork":false,"pushed_at":"2025-05-10T01:29:31.000Z","size":237,"stargazers_count":18,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-10T02:26:42.950Z","etag":null,"topics":["ai","ai-art","deep-learning","diffusion","image-generation","image2image","img2img","nix","nix-flake","nixos","nixos-flake","pytorch","stable-diffusion","stable-diffusion-webui","text2image","torch","txt2img","upscaling","web"],"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/Janrupf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2024-04-01T19:36:37.000Z","updated_at":"2025-05-10T01:29:34.000Z","dependencies_parsed_at":"2024-04-02T02:43:17.048Z","dependency_job_id":"fda1a564-5e10-4fd4-bdba-c7e89b5df22f","html_url":"https://github.com/Janrupf/stable-diffusion-webui-nix","commit_stats":null,"previous_names":["janrupf/stable-diffusion-webui-nix"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Janrupf%2Fstable-diffusion-webui-nix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Janrupf%2Fstable-diffusion-webui-nix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Janrupf%2Fstable-diffusion-webui-nix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Janrupf%2Fstable-diffusion-webui-nix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Janrupf","download_url":"https://codeload.github.com/Janrupf/stable-diffusion-webui-nix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254179892,"owners_count":22027884,"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":["ai","ai-art","deep-learning","diffusion","image-generation","image2image","img2img","nix","nix-flake","nixos","nixos-flake","pytorch","stable-diffusion","stable-diffusion-webui","text2image","torch","txt2img","upscaling","web"],"created_at":"2025-05-14T16:20:39.455Z","updated_at":"2025-05-14T16:21:29.265Z","avatar_url":"https://github.com/Janrupf.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stable diffusion Web UI's for Nix\n\n###### Fully reproducible flake packaging stable diffusion python UI's\n\n## Using this flake\n\nAdd the following to your inputs:\n```nix\nstable-diffusion-webui-nix = {\n  url = \"github:Janrupf/stable-diffusion-webui-nix/main\";\n  inputs.nixpkgs.follows = \"nixpkgs\";\n};\n```\n\nThen add the overlay to your system configuration:\n```nix\n{ \n  nixpkgs.overlays = [ stable-diffusion-webui-nix.overlays.default ];\n}\n```\n\nFinally add the package you want to your system packages:\n\n```nix\nenvironment.systemPackages = [\n  pkgs.stable-diffusion-webui.forge.cuda # For lllyasviel's fork of AUTOMATIC1111 WebUI\n  pkgs.stable-diffusion-webui.comfy.cuda # For ComfyUI\n];\n```\n\nAfterwards you should have the command `stable-diffusion-webui` or `comfy-ui`\navailable which launches the server.\n\n### Quirks\n\n#### Where is my WebUI (for Forge) data?\n\nData is by default stored in `$HOME/.local/share/stable-diffusion-webui`, this can be\noverwritten by using the `--data-dir /another/path` argument when starting the Web UI.\n\n#### Where is my ComfyUI data?\n\nData is by default stored in `$HOME/.local/share/comfy-ui`, this can be ovewritten\nby using `--base-directory /another/path` argument.\n\n#### This takes ages to compile...\n\nRunning Stable Diffusion models requires CUDA and thus depends on packages which are\nby default not available in the NixOS cache. Add the \n[cuda-maintainers](https://app.cachix.org/cache/cuda-maintainers) Cachix as a \nsubstituter to your Nix configuration. See the \n[NixOS Wiki](https://nixos.wiki/wiki/CUDA) for more information.\n\n## Developing this flake/updating packages to a new version\n\nDue to the nature of python package management, this flake is quite complex.\n\n1. update the commit hashes in `source/package` (file depends on which package you want to change).\n2. run `nix run .#package.update-helper source/package/install-instructions.json`\n   (for example `.#comfy.cuda.update-helper source/comfy/install-instructions-cuda.json`)\n   to update the requirements metadata\n3. try running the package using `nix run .#package` (for example `nix run .#comfy.cuda`) and test everything\n\nNOTE: If you get an error that you have run out of disk space during step 2, your \n`/tmp` is too small. Either increase the tmpfs size or run the command with `TMPDIR` \nset to a different directory. Generally, if step 2 fails the temporary directory \nmay not be deleted, you are free to `rm -rf` it, but it can be useful for inspecting\nwhy it failed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanrupf%2Fstable-diffusion-webui-nix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanrupf%2Fstable-diffusion-webui-nix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanrupf%2Fstable-diffusion-webui-nix/lists"}