From 2204388a396e888e9f195bc697594ebdf482c370 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 22 Jun 2024 18:58:05 +0200 Subject: [PATCH] Generate partitioning script properly --- lib/modules/partition.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/modules/partition.nix b/lib/modules/partition.nix index b806c22b..0d9a9d5d 100644 --- a/lib/modules/partition.nix +++ b/lib/modules/partition.nix @@ -231,7 +231,13 @@ }; }; - script = config.partition.os.script; + script = + let + inherit (config.partition) + os + disks + ; + in lib.strings.concatLines (builtins.map (_: _.script) ([os] ++ (builtins.attrValues disks))); }; }; }