forked from mirrors/nixpkgs
nixos/networkd: Fix macvlan called with null mode
This commit is contained in:
parent
16827ff287
commit
a911f9989c
|
@ -124,7 +124,7 @@ in
|
|||
Name = name;
|
||||
Kind = "macvlan";
|
||||
};
|
||||
macvlanConfig.Mode = macvlan.mode;
|
||||
macvlanConfig = optionalAttrs (macvlan.mode != null) { Mode = macvlan.mode; };
|
||||
};
|
||||
networks."40-${macvlan.interface}" = (mkMerge [ (genericNetwork (mkOverride 999)) {
|
||||
macvlan = [ name ];
|
||||
|
|
Loading…
Reference in a new issue