nixos/network-interfaces: Fix vlan device coming up during switch
This commit is contained in:
parent
ed6040fc8d
commit
ef92afe0da
@ -684,8 +684,7 @@ in
|
|||||||
{ description = "Virtual Network Interface ${i.name}";
|
{ description = "Virtual Network Interface ${i.name}";
|
||||||
requires = [ "dev-net-tun.device" ];
|
requires = [ "dev-net-tun.device" ];
|
||||||
after = [ "dev-net-tun.device" ];
|
after = [ "dev-net-tun.device" ];
|
||||||
wantedBy = [ "network.target" ];
|
wantedBy = [ "network.target" "sys-subsystem-net-devices-${i.name}.device" ];
|
||||||
requiredBy = [ "sys-subsystem-net-devices-${i.name}.device" ];
|
|
||||||
path = [ pkgs.iproute ];
|
path = [ pkgs.iproute ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user