From 4fbde3a1382537080bffd2f788c127e5549ab056 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 3 Nov 2015 22:02:28 +0100 Subject: tinc on ymir --- custom/tinc/yggdrasil.nix | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'custom/tinc') 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 @@ -{ config, pkgs, ... }: +{ config, pkgs, name, ip }: -let - name = "unknown"; - ip = "xxx.xxx.xxx.xxx"; -in { +{ config.services.tinc = { networks = { "yggdrasil" = { @@ -29,8 +26,5 @@ in { config.networking.interfaces."tinc.yggdrasil" = { useDHCP = false; - ip4 = [ - { address = ip; prefixLength = 16; } - ]; - }; + } \\ ip; } -- cgit v1.2.3