diff options
author | William A. Kennington III <william@wkennington.com> | 2014-11-30 01:19:33 -0800 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2014-11-30 01:19:54 -0800 |
commit | a911f9989c036fcd64058815fc3033e2742345e7 (patch) | |
tree | 75fdac08cbc95c22711f5aa6f8c7a065b31a19b9 /nixos | |
parent | 16827ff287cf6ccda70ad0f00178251da0f54981 (diff) | |
download | nixlib-a911f9989c036fcd64058815fc3033e2742345e7.tar nixlib-a911f9989c036fcd64058815fc3033e2742345e7.tar.gz nixlib-a911f9989c036fcd64058815fc3033e2742345e7.tar.bz2 nixlib-a911f9989c036fcd64058815fc3033e2742345e7.tar.lz nixlib-a911f9989c036fcd64058815fc3033e2742345e7.tar.xz nixlib-a911f9989c036fcd64058815fc3033e2742345e7.tar.zst nixlib-a911f9989c036fcd64058815fc3033e2742345e7.zip |
nixos/networkd: Fix macvlan called with null mode
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/tasks/network-interfaces-systemd.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces-systemd.nix b/nixos/modules/tasks/network-interfaces-systemd.nix index 334b24b5ad38..997c18046737 100644 --- a/nixos/modules/tasks/network-interfaces-systemd.nix +++ b/nixos/modules/tasks/network-interfaces-systemd.nix @@ -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 ]; |