nixos/network-interfaces: Fix vlan device coming up during switch

This commit is contained in:
William A. Kennington III 2014-08-24 15:56:37 -07:00
parent ed6040fc8d
commit ef92afe0da
1 changed files with 1 additions and 2 deletions

View File

@ -684,8 +684,7 @@ in
{ description = "Virtual Network Interface ${i.name}";
requires = [ "dev-net-tun.device" ];
after = [ "dev-net-tun.device" ];
wantedBy = [ "network.target" ];
requiredBy = [ "sys-subsystem-net-devices-${i.name}.device" ];
wantedBy = [ "network.target" "sys-subsystem-net-devices-${i.name}.device" ];
path = [ pkgs.iproute ];
serviceConfig = {
Type = "oneshot";