From bf440582c49d48696a6bcbc2bc90d617be1f214d Mon Sep 17 00:00:00 2001 From: Rua Date: Fri, 24 Jan 2025 11:59:53 +0100 Subject: [PATCH] Use `concatMapStrings` --- lib/types/gpt.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/types/gpt.nix b/lib/types/gpt.nix index 3199eff..bb2d3cb 100644 --- a/lib/types/gpt.nix +++ b/lib/types/gpt.nix @@ -210,7 +210,7 @@ in if ! blkid "${config.device}" >&2; then sgdisk --clear "${config.device}" fi - ${lib.concatStrings (map (partition: + ${lib.concatMapStrings (partition: let args = '' --partition-guid="${toString partition._index}:${if partition.uuid == null then "R" else partition.uuid}" \ @@ -234,7 +234,7 @@ in udevadm trigger --subsystem-match=block udevadm settle '' - ) sortedPartitions)} + ) sortedPartitions} ${ lib.optionalString (sortedHybridPartitions != [])