nixos: luksroot: toString-ify keyFileSize usage

This commit is contained in:
Cole Mickens 2022-10-04 20:11:12 -07:00
parent 5b85d74750
commit 3d5d6fc78c
No known key found for this signature in database
GPG Key ID: B475C2955744A019

View File

@ -481,8 +481,8 @@ let
++ optional v.allowDiscards "discard"
++ optionals v.bypassWorkqueues [ "no-read-workqueue" "no-write-workqueue" ]
++ optional (v.header != null) "header=${v.header}"
++ optional (v.keyFileOffset != null) "keyfile-offset=${v.keyFileOffset}"
++ optional (v.keyFileSize != null) "keyfile-size=${v.keyFileSize}"
++ optional (v.keyFileOffset != null) "keyfile-offset=${toString v.keyFileOffset}"
++ optional (v.keyFileSize != null) "keyfile-size=${toString v.keyFileSize}"
;
in "${n} ${v.device} ${if v.keyFile == null then "-" else v.keyFile} ${lib.concatStringsSep "," opts}") luks.devices));