Build an ISO image using nixos-rebuild
masterTo build a standard ISO image, use the nixos-rebuild build-image command with the --image-variant iso flag.
If you need to explicitly specify your NixOS configuration path and a specific nixpkgs checkout, use environment variables:
NIX_PATH=nixpkgs=../nixpkgs NIXOS_CONFIG="/etc/nixos/nixos-configuration.nix" nixos-rebuild build-image --image-variant isonixos-rebuild build-image --image-variant iso