infrastructure/hosts/athame/meta.nix
2021-03-29 05:35:21 +01:00

33 lines
787 B
Nix

{ config, hosts, ... }: {
config = {
resources.athame = {
provider = "null";
type = "resource";
connection = {
port = 62954;
host = "athame.kittywit.ch";
};
};
resources.athame_test_domain = {
provider = "dns";
type = "a_record_set";
inputs = {
zone = "kittywit.ch.";
name = "testy";
addresses = [
"168.119.126.111"
];
ttl = 300;
};
};
deploy.systems.athame = with config.resources; {
nixosConfig = hosts.athame.config;
connection = athame.connection.set;
triggers.copy.athame = athame.refAttr "id";
triggers.secrets.athame = athame.refAttr "id";
triggers.switch.athame = athame_test_domain.refAttr "id";
};
};
}