From 5ffe98a56d351d183c1ba13121ecb1a1f2a484db Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 7 Dec 2024 17:50:10 +0100 Subject: [PATCH] Remove redundancy --- lib/modules/partition/disks.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/modules/partition/disks.nix b/lib/modules/partition/disks.nix index 1636d867..654efcac 100644 --- a/lib/modules/partition/disks.nix +++ b/lib/modules/partition/disks.nix @@ -104,7 +104,6 @@ let if append then "--append" else "" } ${deviceVar}" }"; - wipeScript = script: fdiskScript script [ ] false; appendScript = index: script: fdiskScript script [ "-N" (builtins.toString index) ] true; cleanup = lib.strings.concatLines (builtins.map @@ -116,7 +115,7 @@ let fdiskCommands = lib.strings.concatLines (lib.optionals config.wipe [ cleanup - (wipeScript "label: gpt") + (fdiskScript "label: gpt" [ ] false) ] ++ (builtins.concatMap ( partition: