Skip to content

Packer w/ Vagrant setup for building a NixOS Virtualbox instance

Notifications You must be signed in to change notification settings

jaredledvina/nixos-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nixos-box

This repo contains a basic NixOS Packer and Vagrant setup to allow for local NixOS work without having to do a full install.

How to use this repo

  1. Install Packer: https://www.packer.io/docs/install/index.html
  2. Install Vagrant: https://www.vagrantup.com/docs/installation/
  3. git clone this repo locally and cd into it
  4. cd packer
  5. packer build -force nixos.json
  6. cd ..
  7. vagrant up
  8. 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:

  1. rm -rf packer/{nixos.box,nixos.box.checksum,output-virtualbox-iso}
  2. vagrant box remove --all --force nixos-box
  3. Follow the build steps above

About

Packer w/ Vagrant setup for building a NixOS Virtualbox instance

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published