virchau13 / automatic1111-webui-nix

AUTOMATIC1111/stable-diffusion-webui for CUDA and ROCm on NixOS
MIT License
142 stars 19 forks source link

No defaultPackage.x86_64-linux? #4

Closed rydnr closed 1 year ago

rydnr commented 1 year ago

Hi,

Blindly following the README instructions yields (in my laptop):

error: getting status of '/nix/store/jr0dgqz1ffl4lyw1fzihaj9q0c0g9bq8-source/flake.nix': No such file or directory

After running nix flake update, I get this error now:

error: flake 'git+file:///[...]/automatic1111-webui-nix' does not provide attribute 'packages.x86_64-linux.default' or 'defaultPackage.x86_64-linux'

I'm running NixOS 22.11 (configured using flakes), Linux kernel 5.15.103.

Any ideas?

virchau13 commented 1 year ago

If you run git add . in the A1111 repository beforenix develop, does it work?

plul commented 1 year ago

@virchau13 I think there's two issues:

nix shell # or nix-shell if you're not using flakes.

virchau13 commented 1 year ago

Wow, how did I completely miss that? Thanks!