summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/tinc/yggdrasil.nix3
-rw-r--r--ymir.nix1
2 files changed, 3 insertions, 1 deletions
diff --git a/custom/tinc/yggdrasil.nix b/custom/tinc/yggdrasil.nix
index f6aa00b8..4191d2c4 100644
--- a/custom/tinc/yggdrasil.nix
+++ b/custom/tinc/yggdrasil.nix
@@ -1,6 +1,7 @@
1{ stdenv 1{ stdenv
2, nettools 2, nettools
3, openresolv 3, openresolv
4, name
4, connect ? true 5, connect ? true
5, ipConf ? {} 6, ipConf ? {}
6}: 7}:
@@ -10,7 +11,7 @@ let
10 connectTo = if connect then "" else "ConnectTo = ymir"; 11 connectTo = if connect then "" else "ConnectTo = ymir";
11in { 12in {
12 "yggdrasil" = { 13 "yggdrasil" = {
13 name = name; 14 inherit name;
14 debugLevel = 2; 15 debugLevel = 2;
15 hosts = ( import ./yggdrasil-hosts.nix ); 16 hosts = ( import ./yggdrasil-hosts.nix );
16 extraConfig = connectTo; 17 extraConfig = connectTo;
diff --git a/ymir.nix b/ymir.nix
index 1c9d8aa3..10be9994 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -146,6 +146,7 @@ in {
146 ''; 146 '';
147 147
148 services.customTinc.networks = (pkgs.callPackage ./custom/tinc/yggdrasil.nix { 148 services.customTinc.networks = (pkgs.callPackage ./custom/tinc/yggdrasil.nix {
149 name = config.networking.hostName;
149 connect = false; 150 connect = false;
150 ipConf = { 151 ipConf = {
151 ip4 = [ { address = "10.141.4.1"; prefixLength = 16; } ]; 152 ip4 = [ { address = "10.141.4.1"; prefixLength = 16; } ];