2013-04-05 07:23:17 -07:00
|
|
|
NixOS boxes for Vagrant
|
|
|
|
=======================
|
|
|
|
|
2013-11-27 12:54:15 -08:00
|
|
|
[NixOS](http://nixos.org) is a linux distribution based on a purely functional
|
|
|
|
package manager. This project builds .box images that can be used by
|
|
|
|
[vagrant](http://vagrantup.com), the VM manager.
|
|
|
|
|
|
|
|
Status
|
|
|
|
------
|
|
|
|
|
|
|
|
stable
|
|
|
|
|
2013-11-27 14:04:36 -08:00
|
|
|
Install
|
|
|
|
-------
|
|
|
|
|
|
|
|
```
|
|
|
|
vagrant box add nixbox32 http://zimbatm.s3.amazonaws.com/nixbox/nixos32-virtualbox.box
|
|
|
|
vagrant init nixbox32
|
|
|
|
# or
|
|
|
|
vagrant box add nixbox64 http://zimbatm.s3.amazonaws.com/nixbox/nixos64-virtualbox.box
|
|
|
|
vagrant init nixbox64
|
|
|
|
```
|
|
|
|
|
2013-11-27 12:54:15 -08:00
|
|
|
Building the images
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
First install [packer](http://packer.io) and
|
|
|
|
[virtualbox](https://www.virtualbox.org/)
|
2013-07-22 04:07:17 -07:00
|
|
|
|
|
|
|
Then:
|
|
|
|
|
2013-04-05 07:23:17 -07:00
|
|
|
```
|
2013-11-27 12:54:15 -08:00
|
|
|
packer build nixbox32-template.json
|
|
|
|
# or
|
|
|
|
packer build nixbox64-template.json
|
2013-04-05 07:23:17 -07:00
|
|
|
```
|
2013-11-27 12:54:15 -08:00
|
|
|
|
|
|
|
The .box image is now ready to go and you can use it in vagrant:
|
|
|
|
|
|
|
|
```
|
|
|
|
vagrant box add nixbox32 nixbox32-virtualbox.box
|
|
|
|
# or
|
|
|
|
vagrant box add nixbox64-nixbox64-virtualbox.box
|
|
|
|
```
|
|
|
|
|