infrastructure/config/targets/personal/default.nix
2021-07-06 01:00:41 +01:00

33 lines
753 B
Nix

{ config, ... }:
{
deploy.targets.personal = {
nodeNames = [ "samhain" "yule"];
tf = { config, ... }: {
# phone (android)
variables.phone_ygg = {
type = "string";
value.shellCommand = "bitw get infra/phone-ygg";
};
dns.records.kittywitch_net_grimoire = {
tld = "kittywit.ch.";
domain = "grimoire.net";
aaaa.address = config.variables.phone_ygg.ref;
};
# pi (sensors)
variables.pi_ygg = {
type = "string";
value.shellCommand = "bitw get infra/pi-ygg";
};
dns.records.kittywitch_net_boline = {
tld = "kittywit.ch.";
domain = "boline.net";
aaaa.address = config.variables.pi_ygg.ref;
};
};
};
}