about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-11-30 01:19:33 -0800
committerWilliam A. Kennington III <william@wkennington.com>2014-11-30 01:19:54 -0800
commita911f9989c036fcd64058815fc3033e2742345e7 (patch)
tree75fdac08cbc95c22711f5aa6f8c7a065b31a19b9 /nixos
parent16827ff287cf6ccda70ad0f00178251da0f54981 (diff)
downloadnixlib-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.nix2
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 ];