3
0
Fork 0
forked from mirrors/nixpkgs

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-08-23 23:02:47 +02:00
parent 4f8c5331c8
commit 711303952e
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -195,6 +195,7 @@ let
description = "WireGuard Tunnel - ${name}"; description = "WireGuard Tunnel - ${name}";
after = [ "network.target" ]; after = [ "network.target" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
environment.DEVICE = name;
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";