Skip to content

Commit

Permalink
update REAEME for 23.11
Browse files Browse the repository at this point in the history
  • Loading branch information
ifurther committed Jan 14, 2024
1 parent 1b93328 commit b1c1210
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ Usage
-----

```shell
vagrant init nixos/nixos-18.09-i686
# or
vagrant init nixos/nixos-18.09-x86_64
vagrant init nixbox/nixos --box-version 23.11
```

Also have a look at the accompanying nixos vagrant plugin:
Expand Down Expand Up @@ -56,8 +54,8 @@ Have a look at the different `make build` target to build your image.

```shell
make build-all # Build latest version for all architectures
make VERSION=22.05 build # Build specific version for x86_64 architecture
make VERSION=22.05 ARCH=i686 build # Build specific version for specific architecture
make VERSION=23.11 build # Build specific version for x86_64 architecture
make VERSION=23.11 ARCH=i686 build # Build specific version for specific architecture

make vagrant-add
make vagrant-push
Expand All @@ -66,18 +64,18 @@ make vagrant-push
If you build on a host that does not support Makefile, here are some examples:

```shell
packer build --only=virtualbox-iso.virtualbox -var version=22.05 --except=vagrant-cloud nixos.pkr.hcl
packer build --only=qemu.qemu -var version=22.05 --except=vagrant-cloud nixos.pkr.hcl
packer build --only=vmware-iso.vmware -var version=22.05 --except=vagrant-cloud nixos.pkr.hcl
packer build -var-file="nixos.auto.pkvars.hcl" --only=hyperv-iso.hyperv --except=vagrant-cloud nixos.pkr.hcl
packer build --only=virtualbox-iso.virtualbox -var version=23.11 --except=vagrant-cloud nixos.pkr.hcl
packer build --only=qemu.qemu -var version=23.11 --except=vagrant-cloud nixos.pkr.hcl
packer build --only=vmware-iso.vmware -var version=23.11 --except=vagrant-cloud nixos.pkr.hcl
packer build --only=hyperv-iso.hyperv -var version=23.11 --except=vagrant-cloud nixos.pkr.hcl
```

The vagrant .box image is now ready to go and you can use it in vagrant:

```shell
vagrant box add nixbox32 nixos-22.05-libvirt-i686.box
vagrant box add nixbox32 nixos-23.11-libvirt-i686.box
# or
vagrant box add nixbox64 nixos-22.05-virtualbox-x86_64.box
vagrant box add nixbox64 nixos-23.11-virtualbox-x86_64.box
```

Troubleshooting
Expand All @@ -101,7 +99,7 @@ Vagrant.configure("2") do |config|

# Use a suitable NixOS base. VM built with nixbox are tested to work with
# this plugin.
config.vm.box = "nixos-22.05"
config.vm.box = "nixos-23.11"

# Add the htop package
config.vm.provision :nixos,
Expand Down

0 comments on commit b1c1210

Please sign in to comment.