feat(profiles/base): add internal record for each machine

This commit is contained in:
Julien Malka 2024-08-24 00:55:40 +02:00
parent 0a0f3ad1eb
commit e32cc13320
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -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 ../.;