Skip to content

Commit f668622

Browse files
committed
nixos-modules/microvm/options: don't allow/default to null for macvtap parameters
1 parent d25949a commit f668622

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nixos-modules/microvm/options.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,13 @@ in
257257
'';
258258
};
259259
macvtap.link = mkOption {
260-
type = nullOr str;
261-
default = null;
260+
type = str;
262261
description = ''
263262
Attach network interface to host interface for type = "macvlan"
264263
'';
265264
};
266265
macvtap.mode = mkOption {
267-
type = nullOr (enum ["private" "vepa" "bridge" "passthru" "source"]);
268-
default = null;
266+
type = enum ["private" "vepa" "bridge" "passthru" "source"];
269267
description = ''
270268
The MACVLAN mode to use
271269
'';

0 commit comments

Comments
 (0)