diff options
Diffstat (limited to 'custom/tinc')
-rw-r--r-- | custom/tinc/yggdrasil.nix | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/custom/tinc/yggdrasil.nix b/custom/tinc/yggdrasil.nix index 54f47281..6b3bb5cc 100644 --- a/custom/tinc/yggdrasil.nix +++ b/custom/tinc/yggdrasil.nix | |||
@@ -1,9 +1,6 @@ | |||
1 | { config, pkgs, ... }: | 1 | { config, pkgs, name, ip }: |
2 | 2 | ||
3 | let | 3 | { |
4 | name = "unknown"; | ||
5 | ip = "xxx.xxx.xxx.xxx"; | ||
6 | in { | ||
7 | config.services.tinc = { | 4 | config.services.tinc = { |
8 | networks = { | 5 | networks = { |
9 | "yggdrasil" = { | 6 | "yggdrasil" = { |
@@ -29,8 +26,5 @@ in { | |||
29 | 26 | ||
30 | config.networking.interfaces."tinc.yggdrasil" = { | 27 | config.networking.interfaces."tinc.yggdrasil" = { |
31 | useDHCP = false; | 28 | useDHCP = false; |
32 | ip4 = [ | 29 | } \\ ip; |
33 | { address = ip; prefixLength = 16; } | ||
34 | ]; | ||
35 | }; | ||
36 | } | 30 | } |