!oNSIfazDqEcwhcOjSL:matrix.org

disko

389 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko104 Servers

Load older messages


SenderMessageTime
14 Mar 2026
@matthewcroughan:defenestrate.itmatthewcroughanis what I have right now18:24:14
@matthewcroughan:defenestrate.itmatthewcroughan *
            zfs = {
              size = "100%";
              content = {
                type = "zfs";
                pool = "edpool";
              };
            };
18:24:19
@lassulus:lassul.uslassulusyes, that is the trivial case :)18:24:24
@matthewcroughan:defenestrate.itmatthewcroughan error: A definition for option disko.devices.disk.disk1.content.partitions.zfs.size' is not of type value "100%" (singular enum) or str… ┃ - In /nix/store/g8pkz1bxk5n7vvicr9nk0wklgrqp0k9y-source/hosts/ed/disko.nix': "10%` 18:24:43
@lassulus:lassul.uslassulusdon't think zfs can do other sizes than 100% or fixed block size18:25:25
@lassulus:lassul.uslassuluslvm can do other %18:25:33
@matthewcroughan:defenestrate.itmatthewcroughanYou can set 1G18:25:38
@matthewcroughan:defenestrate.itmatthewcroughanthe only reason I'm using this image builder is because I don't trust the diskoScript to do the right thing, on my laptop 18:27:38
@matthewcroughan:defenestrate.itmatthewcroughanRunning the diskoScript on an existing machine is fine, except in the case of zfs where weird things happen because of pool names18:27:57
@matthewcroughan:defenestrate.itmatthewcroughan And also nixos-install on a running machine is weird too, I've had it fsck up because it installed the bootloader for the target into my real /boot 18:28:37
@lassulus:lassul.uslassulusI guess we could write a script that copies the closure into the image and it can check before it runs if there is enough space, since it's easier to do this when everything is mounted18:30:26
@lassulus:lassul.uslassuluswould still be a build time error18:30:38
@lassulus:lassul.uslassulusbut we could raise a better error message18:30:45
@matthewcroughan:defenestrate.itmatthewcroughanAt the great cost of build time 18:31:34
@matthewcroughan:defenestrate.itmatthewcroughanYou're going to 2x the build time if you do that18:31:43
@matthewcroughan:defenestrate.itmatthewcroughanjust for a check18:31:47
@matthewcroughan:defenestrate.itmatthewcroughanThe image builder as-is is pretty snappy, but copying the large toplevel twice is going to make that experience worse18:32:31
@matthewcroughan:defenestrate.itmatthewcroughan

lassulus: Even after increasing the imageSize I continue to run into this issue:

ed-disko-images> cp: cannot access '/nix/store/70yigs2nzcjv8iwqf5xmlhqcyp9fyy8s-qemu-10.2.1-ga': Cannot allocate memory
ed-disko-images> [   15.769579] virtio-fs: virtio_fs_enqueue_req() failed -12
ed-disko-images> cp: cannot access '/nix/store/7w2ymzbr4xqvf7527l9halmqf0hq5xy0-intel-compute-runtime-26.05.37020.3': Cannot allocate memory
ed-disko-images> [   17.223740] virtio-fs: virtio_fs_enqueue_req() failed -12
ed-disko-images> cp: cannot access '/nix/store/8wz0w5c36wb30wx08grryjzzvjw07rbv-graphics-drivers/lib/gbm': Cannot allocate memory
18:32:56
@lassulus:lassul.uslassulusah yeah, the memory thingie18:33:11
@lassulus:lassul.uslassulusnot sure what triggers it, if you have a small nix expression reproducer I can debug it18:33:27
@matthewcroughan:defenestrate.itmatthewcroughanVMs just are not the way to go for image building18:33:32
@matthewcroughan:defenestrate.itmatthewcroughanFS as lib is, like repart18:33:42
@lassulus:lassul.uslassulusbut there are soo many different FS18:33:52
@lassulus:lassul.uslassulusdon't want to reimplement all of them :D18:34:04
@matthewcroughan:defenestrate.itmatthewcroughanTrue, I suppose VMs allow disko to support BSD and other FS types18:34:21
@matthewcroughan:defenestrate.itmatthewcroughaneven macos or windows FS if you really wanted to18:34:41
@matthewcroughan:defenestrate.itmatthewcroughanwith nixbsd, actually supporting that with disko isn't out of the question today18:35:02
@lassulus:lassul.uslassulusalso something like ZFS is not supported as lib I think18:35:05
@matthewcroughan:defenestrate.itmatthewcroughan I don't run into the "Cannot allocate memory" issue if I increase the memSize to 16384 18:37:09
@matthewcroughan:defenestrate.itmatthewcroughanthough I of course see my memory usage go up massively on my host18:37:22

Show newer messages


Back to Room ListRoom Version: 10