> Hi Sébastien, > > Sébastien Gendre <[email protected]> skribis: > >> Do you know if their is a tool to manage these parts about disks, in a >> declarative way and using Scheme ? >> >> I know the Disko tool for NixOS [1], but it's for NixOS and use the Nix >> format. I have searched an equivalent for Guix System, without success. > > There’s nothing like Disko, but we’re not far from it: the ‘guix system > image’ machinery defines a partition data type, so we can already > declaratively specify the partitions in an image. > > https://guix.gnu.org/manual/devel/en/html_node/partition-Reference.html > > Some has to connect the dots. :-)
What would that mean in more detail? E.g. 1. Read the disc configuration 2. Read the actual disc layout 3. Compare and if they do not match start partitioning Partitioning phase: 1. Go to bootloader 2. Repartition according to config 3. Restart the kernel? or 1. kexec into guix installer (like nixos-anywhere [1]) 2. Let the installer do the partitioning? Just to get more clarity about the potential effort. As I would also be interested in such a tool, to achieve something similar to nixos-anywhere. As I understand from you comment Ludo the configuration is there and even some parts of the partioning code? Best, Reza [1] https://github.com/numtide/nixos-anywhere > Thanks, > Ludo’.
