zlacker

[parent] [thread] 3 comments
1. tt7262+(OP)[view] [source] 2025-06-27 23:43:53
You can also achieve this with your current system

> nix-build '<nixpkgs/nixos>' -A vm -I nixpkgs=channel:nixos-25.05 -I nixos-config=./configuration.nix

I use nixos btw

replies(1): >>indigo+X6
2. indigo+X6[view] [source] 2025-06-28 01:34:29
>>tt7262+(OP)
Can this do vmdk format?
replies(2): >>jchw+1h >>zimbat+ux
◧◩
3. jchw+1h[view] [source] [discussion] 2025-06-28 04:45:12
>>indigo+X6
I don't know the answer using the built-in VM attributes (I mean I'd guess probably, but I don't know how if so) but there's always nixos-generators for making VM images. Definitely used this for deploying VMs to cloud providers, haven't tried the VMWare one yet though.

https://github.com/nix-community/nixos-generators

◧◩
4. zimbat+ux[view] [source] [discussion] 2025-06-28 09:31:23
>>indigo+X6
Yes, you can target VMDK, AMIs, Azure, ...

`nixos-rebuild build-image --image-variant vmware`

See https://nixos.org/manual/nixos/stable/#sec-image-nixos-rebui...

[go to top]