From 70c6a30d85dcdb1a2022a52a485e6b0e4c47b4ca Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 13 Jul 2018 13:37:53 +0200 Subject: fun.table: use concatStringsSep --- disko.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disko.nix b/disko.nix index 2e6805a..ed385e8 100644 --- a/disko.nix +++ b/disko.nix @@ -25,7 +25,7 @@ let fun.table = q: x: '' parted -s -a optimal ${q.device} mklabel ${x.format} - ${concatStrings (imap (i: part: " \nparted -s -a optimal ${q.device} mkpart ${part.part-type} ${part.fs-type or ""} ${part.start} ${part.end} ${optionalString (part.bootable or false) "\nparted -s -a optimal ${q.device} set ${toString i} boot on "}") x.partitions)} + ${concatStringsSep "\n" (imap (i: part: "parted -s -a optimal ${q.device} mkpart ${part.part-type} ${part.fs-type or ""} ${part.start} ${part.end} ${optionalString (part.bootable or false) "\nparted -s -a optimal ${q.device} set ${toString i} boot on "}") x.partitions)} ${concatStrings (imap (i: x: f (q // { device = q.device + toString i; }) x.content) x.partitions)} ''; -- cgit v1.2.3