ARCHIVED
This repository is now no longer being maintained. The huggingface
library diffusers is now included in nixpkgs.
Quickly get up and running using Stable Diffusion with Nix flakes.
Requirements
- Nix
- Nvidia GPU (3.2GB VRAM)
- x86_64 Linux
Setup
- Enable flakes by editing either
~/.config/nix/nix.confor/etc/nix/nix.confand add
experimental-features = nix-command flakes
-
Use
nix run --impure github:collinarnett/stable-diffusion-nix#jupyterLabto spawn a Jupyter Lab instance. The--impureflag allows nixGL to find your Nvidia drivers on non-nixos systems. -
Replace
YOUR_TOKEN_HEREwith your HuggingFace token and make sure to accept the License Agreement for Stable Diffusion. -
Execute the cells in
stable-diff.ipynbto generate images.
Enjoy!
