diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-11-03 22:02:28 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-11-03 22:02:28 +0100 |
commit | 4fbde3a1382537080bffd2f788c127e5549ab056 (patch) | |
tree | a8550443d62a737a8629924776b53f0f40db1298 | |
parent | c12fb36e8fa3cb0f6c967af1980f9021c0aa85f4 (diff) | |
download | nixos-4fbde3a1382537080bffd2f788c127e5549ab056.tar nixos-4fbde3a1382537080bffd2f788c127e5549ab056.tar.gz nixos-4fbde3a1382537080bffd2f788c127e5549ab056.tar.bz2 nixos-4fbde3a1382537080bffd2f788c127e5549ab056.tar.xz nixos-4fbde3a1382537080bffd2f788c127e5549ab056.zip |
tinc on ymir
-rw-r--r-- | custom/tinc/yggdrasil.nix | 12 | ||||
-rw-r--r-- | ymir.nix | 9 |
2 files changed, 11 insertions, 10 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 | } |
@@ -140,4 +140,11 @@ in { | |||
140 | members = [ "gkleen" | 140 | members = [ "gkleen" |
141 | ]; | 141 | ]; |
142 | }; | 142 | }; |
143 | } | 143 | } \\ (callPackage ./custom/tinc/yggdrasil.nix { |
144 | name = "ymir"; | ||
145 | ip = { | ||
146 | ip4 = [ | ||
147 | { address = "10.141.4.1"; prefixLength = 16; } | ||
148 | ]; | ||
149 | }; | ||
150 | }) | ||