aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-07-13 13:37:53 +0200
committertv <tv@krebsco.de>2018-07-13 13:42:54 +0200
commit70c6a30d85dcdb1a2022a52a485e6b0e4c47b4ca (patch)
tree7d0bc6ae0e24fdab10a021853a9756a0a7b5a1f1
parentdb6151ff06777deb05b345f1775c037d8671687d (diff)
fun.table: use concatStringsSep
-rw-r--r--disko.nix2
1 files changed, 1 insertions, 1 deletions
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)}
'';