From 1d3568bfe68d153dcf6d0a455e2b8e7682d0367b Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 5 Mar 2021 01:16:16 +0100 Subject: [PATCH] host-registry: add freifunk --- flake.nix | 2 +- host-registry.nix | 4 ++++ hosts/containers/freifunk/default.nix | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index dec57dae..2b2799c8 100644 --- a/flake.nix +++ b/flake.nix @@ -57,7 +57,7 @@ yggdrasil-nixos-rebuild = mkDeploy "yggdrasil" "172.20.72.62"; - freifunk-nixos-rebuild = mkDeploy "freifunk" "172.20.72.40"; + freifunk-nixos-rebuild = mkDeploy "freifunk" "freifunk.core.zentralwerk.org"; }); nixosConfigurations = let diff --git a/host-registry.nix b/host-registry.nix index 1f559f41..95c0425d 100644 --- a/host-registry.nix +++ b/host-registry.nix @@ -73,6 +73,10 @@ rec { ip6 = "2a02:8106:208:5281:9000::1"; ygg = "201:4561:bb58:4dac:5f6a:7b23:44f:a5ef"; }; + freifunk = { + ip4 = "172.20.72.40"; + ip6 = "2a02:8106:208:5281:8000::1"; + }; }; hqGlobal = builtins.attrNames hosts; diff --git a/hosts/containers/freifunk/default.nix b/hosts/containers/freifunk/default.nix index e84bd58d..a8f8040d 100644 --- a/hosts/containers/freifunk/default.nix +++ b/hosts/containers/freifunk/default.nix @@ -2,7 +2,7 @@ { config, pkgs, lib, modulesPath, hostRegistry, ... }: let - coreAddress = "172.20.72.40"; + coreAddress = hostRegistry.hosts.freifunk.ip4; corePrefixlen = 26; meshInterface = "bmx"; meshLoopback = "bmx_prime";