luks: drop unnecessary subshell

This commit is contained in:
Jörg Thalheim committed 2025-05-08 09:13:14 +00:00
1 parent 06fb9283ca
commit 6bb82b77ce
1 file changed
+1 -1
+1 -1
View File
@@ -130,7 +130,7 @@ in
_create = diskoLib.mkCreateOption {
inherit config options;
default = ''
if ! blkid "${config.device}" >/dev/null || ! (cryptsetup isLuks "${config.device}"); then
if ! blkid "${config.device}" >/dev/null || ! cryptsetup isLuks "${config.device}"; then
${lib.optionalString config.askPassword ''
promptSecret() {
prompt=$1