This repo contains a basic NixOS Packer and Vagrant setup to allow for local NixOS work without having to do a full install.
- Install Packer: https://www.packer.io/docs/install/index.html
- Install Vagrant: https://www.vagrantup.com/docs/installation/
git clone
this repo locally andcd
into itcd packer
packer build -force nixos.json
cd ..
vagrant up
vagrant ssh
To debug/step through the Packer build, use packer build -force -debug nixos.json
Alternatively, if you want to be prompted only on failures. use packer build -on-error=ask -force nixos.json
To force a full rebuild and reset Vagrant:
rm -rf packer/{nixos.box,nixos.box.checksum,output-virtualbox-iso}
vagrant box remove --all --force nixos-box
- Follow the build steps above