6 ms·
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 us
by tt726259 1y ago
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
- indigodaddy 1y agoCan this do vmdk format?
- jchw 1y agoI 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 https://github.com/nix-community/nixos-generators
- zimbatm 1y agoYes, you can target VMDK, AMIs, Azure, ... `nixos-rebuild build-image --image-variant vmware` See https://nixos.org/manual/nixos/stable/#sec-image-nixos-rebuild-build-image https://nixos.org/manual/nixos/stable/#sec-image-nixos-rebui...