Mic92 / nixos-shell

Spawns lightweight nixos vms in a shell
MIT License
685 stars 39 forks source link

Force VM rebuild #47

Closed onny closed 3 years ago

onny commented 3 years ago

Hey, I guess NixOS is caching somehow the state of a VM and only applies changes if you run it again. How can I force a rebuild or delete the KVM images manually?

Regards Jonas

onny commented 3 years ago

For clarification why I struggle with this issue: I'm using nixos-shell to test a module and it works great so far! The module / service is a web app which creates a Mysql database and uses it. To test it correctly, I want to start the module again with a fresh and clean database setup, without retaining the old entries.

Mic92 commented 3 years ago

You can reset your virtual machine by deleting nixos.qcow2 in the same directory.

onny commented 3 years ago

Oh nice thank you. Already tried that but somehow missed it. nixos-shell is so fast that I couldn't believe it ;)