Skip to content

Commit 093ef73

Browse files
committed
nixos-modules/microvm/options: don't allow volume direct to be null
Fixes Github issue #299
1 parent 77f0b82 commit 093ef73

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

nixos-modules/microvm/options.nix

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,12 @@ in
187187
serial = mkOption {
188188
type = nullOr str;
189189
default = null;
190-
description = "User-configured serial number for the disk
191-
(Currently only respected if using cloud-hypervisor)";
190+
description = "User-configured serial number for the disk";
192191
};
193192
direct = mkOption {
194-
type = nullOr bool;
195-
default = null;
196-
description = "Whether to set O_DIRECT on the disk.
197-
(Currently only respected if using cloud-hypervisor)";
193+
type = bool;
194+
default = false;
195+
description = "Whether to set O_DIRECT on the disk.";
198196
};
199197
label = mkOption {
200198
type = nullOr str;

0 commit comments

Comments
 (0)