wireguard module: add device name environment var

This makes the interface name available as an environment variable for
the pre/post hooks.
This commit is contained in:
Franz Pletz
2017-11-05 16:42:25 +01:00
parent 4f8c5331c8
commit 711303952e
@@ -195,6 +195,7 @@ let
description = "WireGuard Tunnel - ${name}";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
environment.DEVICE = name;
serviceConfig = {
Type = "oneshot";