Skip to content

Commit 2a2e0b3

Browse files
committed
use lib.optionalString
1 parent 1c952b3 commit 2a2e0b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lenovo/thinkpad/x13s/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ in
6363
restartIfChanged = false;
6464

6565
script = ''
66-
BLUETOOTH_MAC="${if cfg.bluetoothMac == null then "" else cfg.bluetoothMac}"
66+
BLUETOOTH_MAC="${lib.optionalString (cfg.bluetoothMac != null) cfg.bluetoothMac}"
6767
6868
if [ "$BLUETOOTH_MAC" = "" ] ; then
6969
echo 'generating bluetooth mac'

0 commit comments

Comments
 (0)