feat: validate terraform use

This commit is contained in:
Kat Inskip 2022-09-18 10:43:53 -07:00
parent 6caf15b9e4
commit 94b52a7720
Signed by: kat
GPG key ID: 465E64DECEA8CF0F

View file

@ -158,10 +158,13 @@
zone = mkDefault "gensokyo.zone.";
create_domain = true;
};
tailscale = {
interfaces = singleton "tailscale0";
tailscale = mkMerge [
(mkIf (cfg.tf.enable) {
ipv4 = meta.tailnet.${config.networking.hostName}.ipv4 or null;
ipv6 = meta.tailnet.${config.networking.hostName}.ipv6 or null;
})
{
interfaces = singleton "tailscale0";
zone = "inskip.me.";
create_domain = true;
};