!oNSIfazDqEcwhcOjSL:matrix.org

disko

363 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko92 Servers

Load older messages


SenderMessageTime
14 Dec 2023
@matthewcroughan:defenestrate.itmatthewcroughan Figured it out, making a PR now, but it does increase the necessary memSize 10:59:58
@matthewcroughan:defenestrate.itmatthewcroughanmaybe the VM should have zram :D11:00:24
@matthewcroughan:defenestrate.itmatthewcroughanIt is quite unfortunate, but there is no way to get a list of kernel module names for the filesystems involved in a nixos configuration 11:02:00
@matthewcroughan:defenestrate.itmatthewcroughan
nixosConfigurations.pi3.config.boot.supportedFilesystems
[ "bcachefs" "bcachefs" "vfat" ]
11:02:21
@matthewcroughan:defenestrate.itmatthewcroughanThis is not a module list, even though it looks like one 11:02:27
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/NixOS/nixpkgs/tree/master/nixos/modules/tasks/filesystems11:02:47
@matthewcroughan:defenestrate.itmatthewcroughan if the string "bcachefs" is found in the supportedFilesystems, it will add boot.initrd.availableKernelModules = [ "bcachefs" "sha256" "chacha20" "poly1305" ]; to the nixosConfiguration 11:03:24
@matthewcroughan:defenestrate.itmatthewcroughanmaybe this is only really a problem for zfs, actually11:04:59
@matthewcroughan:defenestrate.itmatthewcroughan * maybe this is only really a problem for zfs, actually, since it needs to be in the modulesTree11:05:09
@matthewcroughan:defenestrate.itmatthewcroughan * maybe this is only really a problem for zfs, actually, since it needs to be in the rootModules11:05:17
@matthewcroughan:defenestrate.itmatthewcroughan * maybe this is only really a problem for zfs, actually, since it needs to be in the rootModules and can't be dynamically loaded11:05:28
@matthewcroughan:defenestrate.itmatthewcroughanzram inside of vm tests might be a big boost for all performance actually 11:09:59
@matthewcroughan:defenestrate.itmatthewcroughanI wonder why we don't to that11:10:02
@matthewcroughan:defenestrate.itmatthewcroughan * I wonder why we don't do that to the nodes by default 11:10:08
@matthewcroughan:defenestrate.itmatthewcroughan lassulus: I enabled zram inside the disk builder VM, and it allowed me to install a closure with 1024M that I could only install with 2048M otherwise 11:22:34
@matthewcroughan:defenestrate.itmatthewcroughan * lassulus: I enabled zram inside the disk builder VM, and it allowed me to install a closure with 1024M that I could only install with 3GB otherwise 11:22:40
@lassulus:lassul.uslassulusuh weird11:23:16
@lassulus:lassul.uslassulusbut ok11:23:18
@matthewcroughan:defenestrate.itmatthewcroughan @ 12:09:31
@matthewcroughan:defenestrate.itmatthewcroughan * https://github.com/nix-community/disko/pull/46712:09:33
@matthewcroughan:defenestrate.itmatthewcroughan I'm thinking something like disko.imageBuilder as an option namespace might begin to make sense, but not for this PR 12:10:22
@matthewcroughan:defenestrate.itmatthewcroughan disko.imageBuilder.memSize and disko.imageBuilder.extraRootModules 12:11:02
@eyjhb:eyjhb.dkeyJhbI've not been that productive today, but I'm very much enjoying the adventures of Matthew Croughan. And am currently having a hard time not playing with disko as well.12:14:28
@matthewcroughan:defenestrate.itmatthewcroughanI'm astounded how fast those tests ran. 12:15:20
@matthewcroughan:defenestrate.itmatthewcroughan Hmm, it looks like f2fs won't work with this method even with extraRootModules = [ "f2fs" ] 13:23:56
@matthewcroughan:defenestrate.itmatthewcroughan since mkfs.f2fs doesn't exist unless f2fs-tools is in the initrd 13:24:06
@matthewcroughan:defenestrate.itmatthewcroughanIt gets added to the initrd if the initrd is systemd-boot, but vmTools is too low level to benefit from that13:26:57
@matthewcroughan:defenestrate.itmatthewcroughanShould we not just ditch vmTools altogether and use NixOS VMs? The vmTools machinery is shocking to me, it's like a whole other OS being maintained alongside NixOS13:27:27
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/NixOS/nixpkgs/blob/master/nixos/modules/tasks/filesystems/f2fs.nix#L16-L1813:31:57
@matthewcroughan:defenestrate.itmatthewcroughanIt does not look as if you can override the utils provided to the initrd.. hmm https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/vm/default.nix#L2913:34:29

Show newer messages


Back to Room ListRoom Version: 10