diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2018-01-31 05:51:09 +0100 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2018-01-31 05:51:09 +0100 |
commit | 46c158a32f1b920fe0280c7aea3f42670ece7473 (patch) | |
tree | 9c20825e60c1b14666b73325b0627f0418eb3aa5 /nixos/modules/tasks/network-interfaces-scripted.nix | |
parent | dc52fc6dda00c4f3e275e56a5f4f0386260e4063 (diff) |
nixos/networking-interfaces: set default value for virtualType
Diffstat (limited to 'nixos/modules/tasks/network-interfaces-scripted.nix')
-rw-r--r-- | nixos/modules/tasks/network-interfaces-scripted.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/tasks/network-interfaces-scripted.nix b/nixos/modules/tasks/network-interfaces-scripted.nix index 1f424f84c6e0..63d07832d105 100644 --- a/nixos/modules/tasks/network-interfaces-scripted.nix +++ b/nixos/modules/tasks/network-interfaces-scripted.nix @@ -230,9 +230,7 @@ let RemainAfterExit = true; }; script = '' - ip tuntap add dev "${i.name}" \ - ${optionalString (i.virtualType != null) "mode ${i.virtualType}"} \ - user "${i.virtualOwner}" + ip tuntap add dev "${i.name}" mode "${i.virtualType}" user "${i.virtualOwner}" ''; postStop = '' ip link del ${i.name} || true |