2024-01-27 18:53:49 +00:00
|
|
|
{lib, ...}: {
|
|
|
|
imports = [
|
|
|
|
# Paths to other modules.
|
|
|
|
# Compose this module out of smaller ones.
|
|
|
|
];
|
|
|
|
|
|
|
|
# this needs to mirror ../applications/dns.nix
|
2024-03-11 23:14:29 +00:00
|
|
|
options.skynet = {
|
|
|
|
records = lib.mkOption {
|
|
|
|
description = "Records, sorted based on therir type";
|
2024-03-11 23:27:09 +00:00
|
|
|
type = lib.types.attrsOf (lib.types.listOf (lib.types.submodule (import ../_types/dns_object.nix {
|
2024-03-11 23:14:29 +00:00
|
|
|
inherit lib;
|
2024-03-11 23:27:09 +00:00
|
|
|
})));
|
2024-03-11 23:14:29 +00:00
|
|
|
};
|
2024-01-27 18:53:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
2024-03-11 23:27:09 +00:00
|
|
|
skynet.records = {
|
|
|
|
"skynet.ie" = [
|
|
|
|
{
|
|
|
|
record = "optimus-reborn2";
|
|
|
|
r_type = "A";
|
|
|
|
value = "193.1.99.90";
|
|
|
|
server = true;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
record = "panel.games";
|
|
|
|
r_type = "CNAME";
|
|
|
|
value = "optimus-reborn";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
record = "bumblebee";
|
|
|
|
r_type = "A";
|
|
|
|
value = "193.1.99.91";
|
|
|
|
server = true;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
record = "minecraft.compsoc.games";
|
|
|
|
r_type = "CNAME";
|
|
|
|
value = "bumblebee";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
record = "_minecraft._tcp.minecraft.compsoc.games.skynet.ie.";
|
|
|
|
r_type = "SRV";
|
|
|
|
value = "0 10 25518 minecraft.compsoc.games.skynet.ie.";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
# some space to avoid conflicts
|
|
|
|
|
|
|
|
|
|
|
|
};
|
2024-01-27 18:53:49 +00:00
|
|
|
};
|
|
|
|
}
|