Questions about custom live iso

Hello, i have some questions about custom live iso NixOS the wiki is missing some information

First question how to have a live iso that boot more faster ? I’ve followed this guide Copying NixOS's Live CD to RAM: a short look at NixOS's early boot the goal was to get a custom live iso that run only in ram but… it takes around 2 or 3 minutes to copy the system on the ram it’s very slow… is there any solution about this ?

Second question how to minimize at maximum the size of the custom live iso ? My iso take 3,4 GB , i removed a lot of default packages i’ve heard about this Custom ISO - limit size - #2 by hmenke there is only nixpkgs/nixos/modules/installer/cd-dvd/iso-image.nix at efd385f2d5e7ebdcf489509e78ddc7b9b60d70a4 · NixOS/nixpkgs · GitHub in my config but the iso is still big…

Yes, that would be slower, not faster. I don’t expect there would be easy ways to make it boot faster.

I like “minimize at maximum”.

Try using nix-tree to explore the result.

Thanks for responding i didn’t know about “nix-tree” i will check that :slight_smile: