| 14 Dec 2023 |
matthewcroughan | * It does not look as if you can override the utils provided to the vmTools initrd.. hmm
https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/vm/default.nix#L29 | 13:34:38 |
matthewcroughan | I can't solve this in a preCreateHook because those hooks get executed in a subshell which means they can't export vars? | 13:41:45 |
matthewcroughan | time for another module option! | 13:42:02 |
matthewcroughan | https://github.com/nix-community/disko/pull/470 | 13:53:47 |
matthewcroughan | I would recommend merging all the PRs that have the new module option if you think they're fine, then I'll follow up with another PR to refactor the options into disko.imageBuilder.optionName | 13:54:31 |
matthewcroughan | I'll also make an f2fs test and example, after these PRs are merged, as well as a simple raspberry pi hybrid boot example | 13:57:55 |
matthewcroughan | and also a pi4 example using GPT | 13:58:02 |
matthewcroughan | * and also a pi4 example using GPT partitioning | 13:58:06 |
matthewcroughan | Oh.. I can't do type = lib.types.functionTo (lib.types.listOf lib.types.package); and set it to an empty list | 14:03:13 |
matthewcroughan | * Oh.. I can't do type = lib.types.functionTo (lib.types.listOf lib.types.package); and set it to an empty list [] | 14:03:15 |
matthewcroughan | I saw your suggestion, but it should just be listOf package right? | 14:09:19 |
matthewcroughan | yeah that's it, tests pass now :D | 14:11:08 |
matthewcroughan | this test driven development is really great.. | 14:11:27 |
lassulus | oh maybe | 14:19:09 |
matthewcroughan | Ugh! f2fs isn't supported in u-boot either | 14:19:21 |
matthewcroughan | https://u-boot.denx.narkive.com/hZVrGP3R/f2fs-support | 14:19:21 |
matthewcroughan | Here I am, chasing the wrong things.. oh well, disko benefits | 14:19:29 |
matthewcroughan | seems the only options for u-boot are ext4 or zfs, or the forbidden btrfs | 14:19:47 |
matthewcroughan | bcachefs whe | 14:19:51 |
matthewcroughan | * bcachefs when | 14:19:53 |
matthewcroughan | What are the examples of things that need to run on arm64 in the VM when performing the nixos-install? | 14:27:55 |
matthewcroughan | The reason for the memory consumption might be because we're causing nix to evaluate when we don't need to | 14:28:06 |
lassulus | maybe we can prebuild the system outside the vm | 14:37:27 |
matthewcroughan | inheriting the host kernel in vmTools breaks cross, but I'm sure it was already broken in numerous ways | 14:37:57 |
matthewcroughan | for extlinux and u-boot that's not even a problem, but for systemd-boot I think it would be? Not sure about it, some things exec code, whereas extlinux is just a plaintext config file for u-boot | 14:41:09 |
matthewcroughan | In reply to @lassulus:lassul.us maybe we can prebuild the system outside the vm The system is being built inside the VM? I just checked and it's using a --system | 14:52:42 |
matthewcroughan | https://github.com/nix-community/disko/blob/4c4634bbcb299248efe300b37d1624649fd59477/lib/make-disk-image.nix#L64 | 14:53:02 |
lassulus | ah then it shouldn't evaluate anything? | 14:53:21 |
matthewcroughan | the toplevel is evaluated by the outer nix, nothing should be evaluated inside | 14:53:25 |
matthewcroughan | hard to say what the memory usage is coming from, will debug it later | 14:53:33 |