From 56f692740e31c183b7624f9d81f4ebf1237b08ec Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sat, 1 Jun 2024 17:01:14 +0200 Subject: [PATCH] networking: use *.wg.pub.solar in /etc/hosts instead of overriding IPs for existing DNS records, to reduce suprises when DNS records are different depending on the host. Add metronom + tankstelle internal wireguard IPs, too. --- modules/core/networking.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/core/networking.nix b/modules/core/networking.nix index 765fdd4..c1eb80b 100644 --- a/modules/core/networking.nix +++ b/modules/core/networking.nix @@ -28,8 +28,10 @@ networking.firewall.interfaces.wg-ssh.allowedTCPPorts = [ 22 ]; networking.hosts = { - "10.7.6.1" = [ "nachtigall.${config.pub-solar-os.networking.domain}" ]; - "10.7.6.2" = [ "flora-6.${config.pub-solar-os.networking.domain}" ]; + "10.7.6.1" = [ "nachtigall.wg.${config.pub-solar-os.networking.domain}" ]; + "10.7.6.2" = [ "flora-6.wg.${config.pub-solar-os.networking.domain}" ]; + "10.7.6.3" = [ "metronom.wg.${config.pub-solar-os.networking.domain}" ]; + "10.7.6.4" = [ "tankstelle.wg.${config.pub-solar-os.networking.domain}" ]; }; services.openssh = {