diff --git a/lib/modules/partition/disks.nix b/lib/modules/partition/disks.nix index 6b214740..066e5af0 100644 --- a/lib/modules/partition/disks.nix +++ b/lib/modules/partition/disks.nix @@ -142,7 +142,7 @@ ]; fallback = '' - if ! { ls "${diskVar}"?(p)${toString index} 2>&1; } > /dev/null + if ! { ls "${partVar}" 2>&1; } > /dev/null then ${create} fi