!oNSIfazDqEcwhcOjSL:matrix.org

disko

367 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko93 Servers

Load older messages


SenderMessageTime
14 Dec 2023
@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
@matthewcroughan:defenestrate.itmatthewcroughan * 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#L2913:34:38
@matthewcroughan:defenestrate.itmatthewcroughan 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:defenestrate.itmatthewcroughantime for another module option!13:42:02
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/nix-community/disko/pull/47013:53:47
@matthewcroughan:defenestrate.itmatthewcroughan 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:defenestrate.itmatthewcroughanI'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:defenestrate.itmatthewcroughanand also a pi4 example using GPT13:58:02
@matthewcroughan:defenestrate.itmatthewcroughan * and also a pi4 example using GPT partitioning13:58:06
@matthewcroughan:defenestrate.itmatthewcroughan 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:defenestrate.itmatthewcroughan * 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:defenestrate.itmatthewcroughan I saw your suggestion, but it should just be listOf package right? 14:09:19

Show newer messages


Back to Room ListRoom Version: 10