Skip to content

Commit

Permalink
nixos-modules/microvm/options: don't allow volume direct to be null
Browse files Browse the repository at this point in the history
Fixes Github issue #299
  • Loading branch information
astro committed Nov 26, 2024
1 parent 77f0b82 commit 093ef73
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions nixos-modules/microvm/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,12 @@ in
serial = mkOption {
type = nullOr str;
default = null;
description = "User-configured serial number for the disk
(Currently only respected if using cloud-hypervisor)";
description = "User-configured serial number for the disk";
};
direct = mkOption {
type = nullOr bool;
default = null;
description = "Whether to set O_DIRECT on the disk.
(Currently only respected if using cloud-hypervisor)";
type = bool;
default = false;
description = "Whether to set O_DIRECT on the disk.";
};
label = mkOption {
type = nullOr str;
Expand Down

0 comments on commit 093ef73

Please sign in to comment.