$ sh <(curl -L https://nixos.org/nix/install)
close terminal and open again
$ nix-env -iA cachix -f https://cachix.org/api/v1/install
$ cachix use devenv
$ nix-env -if https://github.com/cachix/devenv/tarball/latest
$ cachix use shopware
Start your local dev environment wait until everything is running and leave the terminal open
$ devenv up
Now start a second terminal and run the command below. This will initialize the development environment (import db dump, composer install, migrations, build storefront/admin)
$ devenv shell init