From e32cc133200a1c18caefee47ea13696cc5a862ad Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Sat, 24 Aug 2024 00:55:40 +0200 Subject: [PATCH] feat(profiles/base): add internal record for each machine --- profiles/base.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/profiles/base.nix b/profiles/base.nix index 3c72e35..a6af2fa 100644 --- a/profiles/base.nix +++ b/profiles/base.nix @@ -75,6 +75,24 @@ "/persistent/etc/ssh/ssh_host_ed25519_key" ]; + machine.meta.zones.luj = + lib.mkIf + (lib.hasAttrByPath [ + "vpn" + "ipv4" + ] config.machine.meta.ips) + { + SOA = { + nameServer = "ns"; + adminEmail = "dns@malka.sh"; + serial = 0; + }; + + subdomains.${config.networking.hostName} = { + A = [ config.machine.meta.ips.vpn.ipv4 ]; + }; + }; + system.nixos.label = "${config.system.nixos.release}-${ let repo = builtins.fetchGit ../.;