lassulus
lassulus
hmm, the nixos-generators format for vmware is just a very thin wrapper around: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/vmware-image.nix so ideally the stuff which is broken should be fixed there? But new formats like esxi...
maybe doing this via kexec would be more versatile? An iso upload function wouldn't be required then?
yes, sadly all the different images use different code/options to specify their size. for the raw image itself there is no easy way to do it then to import make-disk-image.nix...
what error do you get?
@DavHau is this fixed?
yes, thats expected, what about: ``` system.build.raw = lib.mkForce (import { inherit lib config pkgs; diskSize = 4096; }); ```
I just tried this again. I have this davhau.nix: ``` { config, lib, pkgs, modulesPath, ... }: { system.build.raw = lib.mkForce (import "${toString modulesPath}/../lib/make-disk-image.nix" { inherit lib config pkgs; diskSize...
what is the format you are using? maybe just show the complete nixos-generate line. you can also add ``` formatAttr = lib.mkForce "qcow"; filename = "*.qcow2"; ``` to have the...
ah, in 21.11 it seems indeed not working, but on nixos-unstable its working as expected
hmm, I'm not a big fan of this interface, seems rather clunky and since it only supports some images I think a more general approach would be nicer. maybe something...