image.repart.partitions

Specify partitions as a set of the names of the partitions with their configuration as the key.

Type
attribute set of (submodule)
Default
{ }
Example
{
  "10-esp" = {
    contents = {
      "/EFI/BOOT/BOOTX64.EFI".source =
        "${pkgs.systemd}/lib/systemd/boot/efi/systemd-bootx64.efi";
    };
    repartConfig = {
      Type = "esp";
      Format = "vfat";
    };
  };
  "20-root" = {
    storePaths = [ config.system.build.toplevel ];
    repartConfig = {
      Type = "root";
      Format = "ext4";
      Minimize = "guess";
    };
  };
};
Declared
<nixpkgs/nixos/modules/image/repart.nix>