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
|
|
|
|
options.skynet.records = lib.mkOption {
|
|
|
|
description = "Records, sorted based on therir type";
|
|
|
|
type = with lib.types;
|
|
|
|
listOf (submodule {
|
|
|
|
options = {
|
|
|
|
record = lib.mkOption {
|
|
|
|
type = str;
|
|
|
|
};
|
|
|
|
r_type = lib.mkOption {
|
|
|
|
type = enum ["A" "CNAME" "TXT" "PTR" "SRV" "MX"];
|
|
|
|
};
|
|
|
|
value = lib.mkOption {
|
|
|
|
type = str;
|
|
|
|
};
|
|
|
|
server = lib.mkOption {
|
|
|
|
description = "Core record for a server";
|
|
|
|
type = bool;
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
|
|
|
skynet.records = [
|
2024-01-27 20:42:19 +00:00
|
|
|
{
|
2024-06-02 20:27:27 +00:00
|
|
|
record = "optimus";
|
2024-01-27 20:42:19 +00:00
|
|
|
r_type = "A";
|
|
|
|
value = "193.1.99.90";
|
|
|
|
server = true;
|
2024-01-27 20:57:58 +00:00
|
|
|
}
|
2024-01-27 20:42:19 +00:00
|
|
|
{
|
|
|
|
record = "panel.games";
|
|
|
|
r_type = "CNAME";
|
2024-01-27 20:44:36 +00:00
|
|
|
value = "optimus-reborn";
|
2024-01-27 20:42:19 +00:00
|
|
|
}
|
2024-02-16 00:08:57 +00:00
|
|
|
{
|
|
|
|
record = "bumblebee";
|
|
|
|
r_type = "A";
|
|
|
|
value = "193.1.99.91";
|
|
|
|
server = true;
|
|
|
|
}
|
2024-06-02 17:56:41 +00:00
|
|
|
{
|
2024-02-16 00:08:57 +00:00
|
|
|
record = "minecraft.compsoc.games";
|
|
|
|
r_type = "CNAME";
|
|
|
|
value = "bumblebee";
|
|
|
|
}
|
|
|
|
{
|
2024-02-16 13:12:32 +00:00
|
|
|
record = "_minecraft._tcp.minecraft.compsoc.games.skynet.ie.";
|
2024-02-16 00:08:57 +00:00
|
|
|
r_type = "SRV";
|
2024-02-16 12:40:43 +00:00
|
|
|
value = "0 10 25518 minecraft.compsoc.games.skynet.ie.";
|
2024-02-16 00:08:57 +00:00
|
|
|
}
|
2024-06-02 17:56:41 +00:00
|
|
|
{
|
2024-06-02 17:51:37 +00:00
|
|
|
record = "minecraft-classic.compsoc.games";
|
|
|
|
r_type = "CNAME";
|
|
|
|
value = "bumblebee";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
record = "_minecraft._tcp.minecraft-classic.compsoc.games.skynet.ie.";
|
|
|
|
r_type = "SRV";
|
|
|
|
value = "0 10 25520 minecraft-classic.compsoc.games.skynet.ie.";
|
|
|
|
}
|
2024-06-02 17:56:41 +00:00
|
|
|
{
|
2024-06-02 17:51:37 +00:00
|
|
|
record = "minecraft.gsoc.games";
|
|
|
|
r_type = "CNAME";
|
|
|
|
value = "bumblebee";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
record = "_minecraft._tcp.minecraft.gsoc.games.skynet.ie.";
|
|
|
|
r_type = "SRV";
|
|
|
|
value = "0 10 25521 minecraft.gsoc.games.skynet.ie.";
|
|
|
|
}
|
2024-06-02 17:56:41 +00:00
|
|
|
{
|
2024-06-02 17:51:37 +00:00
|
|
|
record = "minecraft.phildeb.games";
|
|
|
|
r_type = "CNAME";
|
|
|
|
value = "bumblebee";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
record = "_minecraft._tcp.minecraft.phildeb.games.skynet.ie.";
|
|
|
|
r_type = "SRV";
|
|
|
|
value = "0 10 25522 minecraft.phildeb.games.skynet.ie.";
|
|
|
|
}
|
2024-01-27 18:53:49 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|