2023-01-25 11:48:44 +00:00
|
|
|
/*
|
|
|
|
|
2023-09-17 19:51:08 +00:00
|
|
|
Name: https://masseffect.fandom.com/wiki/Vigil
|
|
|
|
Why: Counterpart to Vendetta
|
|
|
|
Type: VM
|
|
|
|
Hardware: -
|
|
|
|
From: 2023
|
|
|
|
Role: DNS Server
|
|
|
|
Notes:
|
2023-01-25 11:48:44 +00:00
|
|
|
*/
|
2023-09-17 19:51:08 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
nodes,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
name = "vigil";
|
|
|
|
ip_pub = "193.1.99.109";
|
|
|
|
hostname = "${name}.skynet.ie";
|
2023-01-25 11:48:44 +00:00
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
];
|
|
|
|
|
|
|
|
deployment = {
|
2023-05-24 18:31:15 +00:00
|
|
|
targetHost = ip_pub;
|
2023-01-25 11:48:44 +00:00
|
|
|
targetPort = 22;
|
2023-09-30 22:18:14 +00:00
|
|
|
targetUser = null;
|
2023-04-20 13:09:36 +00:00
|
|
|
|
2023-09-17 19:51:08 +00:00
|
|
|
tags = ["active-dns" "dns"];
|
2023-01-25 11:48:44 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 14:05:57 +00:00
|
|
|
services.skynet_backup = {
|
|
|
|
host = {
|
|
|
|
ip = ip_pub;
|
|
|
|
name = name;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-05-30 12:25:52 +00:00
|
|
|
services.skynet.dns = {
|
2023-07-15 14:54:42 +00:00
|
|
|
server = {
|
|
|
|
enable = true;
|
|
|
|
# secondary dns server (ns2)
|
|
|
|
primary = false;
|
|
|
|
ip = ip_pub;
|
|
|
|
};
|
2023-01-25 11:48:44 +00:00
|
|
|
|
|
|
|
# this server will have to have dns records
|
2023-07-16 00:53:21 +00:00
|
|
|
records = [
|
|
|
|
# vigil IN A 193.1.99.109
|
2023-09-17 19:51:08 +00:00
|
|
|
{
|
|
|
|
record = name;
|
|
|
|
r_type = "A";
|
|
|
|
value = ip_pub;
|
|
|
|
server = true;
|
|
|
|
}
|
2023-07-16 00:53:21 +00:00
|
|
|
# 109 IN PTR vigil.skynet.ie.
|
2023-09-17 19:51:08 +00:00
|
|
|
{
|
|
|
|
record = ip_pub;
|
|
|
|
r_type = "PTR";
|
|
|
|
value = hostname;
|
|
|
|
}
|
2023-07-16 00:53:21 +00:00
|
|
|
];
|
2023-01-25 11:48:44 +00:00
|
|
|
};
|
|
|
|
}
|