feat: simplified the dns a tad by passing through vars to functions
This commit is contained in:
parent
5141b57eb5
commit
a000bcc66d
1 changed files with 2 additions and 37 deletions
|
@ -1,10 +1,6 @@
|
||||||
{lib, ...}: {
|
{lib, ...}: {
|
||||||
imports = [
|
imports = [];
|
||||||
# Paths to other modules.
|
|
||||||
# Compose this module out of smaller ones.
|
|
||||||
];
|
|
||||||
|
|
||||||
# this needs to mirror ../applications/dns.nix
|
|
||||||
options.skynet = {
|
options.skynet = {
|
||||||
records = lib.mkOption {
|
records = lib.mkOption {
|
||||||
description = "Records, sorted based on therir type";
|
description = "Records, sorted based on therir type";
|
||||||
|
@ -18,7 +14,7 @@
|
||||||
skynet.records = {
|
skynet.records = {
|
||||||
"skynet.ie" = [
|
"skynet.ie" = [
|
||||||
{
|
{
|
||||||
record = "optimus-reborn2";
|
record = "optimus-reborn";
|
||||||
r_type = "A";
|
r_type = "A";
|
||||||
value = "193.1.99.90";
|
value = "193.1.99.90";
|
||||||
server = true;
|
server = true;
|
||||||
|
@ -50,37 +46,6 @@
|
||||||
# some space to avoid conflicts
|
# some space to avoid conflicts
|
||||||
"conradcollins.net" = [];
|
"conradcollins.net" = [];
|
||||||
"edelharty.net" = [];
|
"edelharty.net" = [];
|
||||||
|
|
||||||
"brendan.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.";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue