2023-01-25 11:48:44 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
Name: https://masseffect.fandom.com/wiki/Vendetta
|
|
|
|
Why: Vendetta held troves of important data waiting for folks to request it.
|
2023-02-24 12:09:21 +00:00
|
|
|
Type: Physical
|
|
|
|
Hardware: PowerEdge r210
|
|
|
|
From: 2011 (?)
|
2023-01-25 11:48:44 +00:00
|
|
|
Role: DNS Server
|
2023-02-24 12:09:21 +00:00
|
|
|
Notes: Using the server that used to be called Earth
|
2023-01-25 11:48:44 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
{ pkgs, lib, nodes, ... }:
|
|
|
|
let
|
|
|
|
# name of the server, sets teh hostname and record for it
|
|
|
|
name = "vendetta";
|
|
|
|
ip_pub = "193.1.99.120";
|
|
|
|
ip_priv = "172.20.20.3";
|
2023-04-20 13:07:26 +00:00
|
|
|
hostname = "${name}.skynet.ie";
|
2023-01-25 11:48:44 +00:00
|
|
|
in {
|
|
|
|
imports = [
|
2023-07-08 08:16:38 +00:00
|
|
|
./hardware/_base.nix
|
2023-02-24 12:09:21 +00:00
|
|
|
./hardware/RM002.nix
|
2023-01-25 11:48:44 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
deployment = {
|
2023-05-24 18:31:15 +00:00
|
|
|
targetHost = ip_pub;
|
2023-01-25 11:48:44 +00:00
|
|
|
targetPort = 22;
|
|
|
|
targetUser = "root";
|
2023-04-20 13:09:36 +00:00
|
|
|
|
2023-07-26 22:23:32 +00:00
|
|
|
tags = [ "active-dns" "dns" ];
|
2023-01-25 11:48:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
2023-02-24 12:09:21 +00:00
|
|
|
# needs to have an address statically assigned
|
|
|
|
interfaces = {
|
|
|
|
eno1 = {
|
|
|
|
ipv4.addresses = [
|
|
|
|
{
|
|
|
|
address = "193.1.99.120";
|
|
|
|
prefixLength = 26;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-01-25 11:48:44 +00:00
|
|
|
skynet_dns = {
|
2023-07-15 14:54:42 +00:00
|
|
|
server = {
|
|
|
|
enable = true;
|
|
|
|
# primary dns server (ns1)
|
|
|
|
primary = true;
|
|
|
|
ip = ip_pub;
|
|
|
|
};
|
2023-01-25 11:48:44 +00:00
|
|
|
|
2023-07-16 00:53:21 +00:00
|
|
|
records = [
|
|
|
|
# vendetta IN A 193.1.99.120
|
|
|
|
{record=name; r_type="A"; value=ip_pub; server=true;}
|
|
|
|
# 120 IN PTR vendetta.skynet.ie.
|
|
|
|
{record=ip_pub; r_type="PTR"; value=hostname;}
|
|
|
|
];
|
2023-01-25 11:48:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|