diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-17 20:06:22 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-17 20:06:22 +0200 |
commit | d6a37f91cb304c2025ed8f803265c0a4b072191c (patch) | |
tree | 0027a66dcc1aa1a3c5850c91839882424241cb4a /custom/tinc/def.nix | |
parent | d620828d322dd1f34b95a63857c2e90527ff5aa4 (diff) | |
download | nixos-d6a37f91cb304c2025ed8f803265c0a4b072191c.tar nixos-d6a37f91cb304c2025ed8f803265c0a4b072191c.tar.gz nixos-d6a37f91cb304c2025ed8f803265c0a4b072191c.tar.bz2 nixos-d6a37f91cb304c2025ed8f803265c0a4b072191c.tar.xz nixos-d6a37f91cb304c2025ed8f803265c0a4b072191c.zip |
rename iface
Diffstat (limited to 'custom/tinc/def.nix')
-rw-r--r-- | custom/tinc/def.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/tinc/def.nix b/custom/tinc/def.nix index 1602e477..2610a13f 100644 --- a/custom/tinc/def.nix +++ b/custom/tinc/def.nix | |||
@@ -127,7 +127,7 @@ in | |||
127 | Name = ${if data.name == null then "$HOST" else data.name} | 127 | Name = ${if data.name == null then "$HOST" else data.name} |
128 | DeviceType = ${data.interfaceType} | 128 | DeviceType = ${data.interfaceType} |
129 | Device = /dev/net/tun | 129 | Device = /dev/net/tun |
130 | Interface = tinc.${network} | 130 | Interface = ${network} |
131 | ExperimentalProtocol = no | 131 | ExperimentalProtocol = no |
132 | ${data.extraConfig} | 132 | ${data.extraConfig} |
133 | ''; | 133 | ''; |
@@ -136,7 +136,7 @@ in | |||
136 | )); | 136 | )); |
137 | 137 | ||
138 | networking.interfaces = flip mapAttrs' cfg.networks (network: data: nameValuePair | 138 | networking.interfaces = flip mapAttrs' cfg.networks (network: data: nameValuePair |
139 | ("tinc.${network}") | 139 | (network) |
140 | ({ | 140 | ({ |
141 | virtual = true; | 141 | virtual = true; |
142 | virtualType = "${data.interfaceType}"; | 142 | virtualType = "${data.interfaceType}"; |