2023-01-25 11:48:44 +00:00
|
|
|
/*
|
|
|
|
|
2023-09-17 19:51:08 +00:00
|
|
|
Name: https://masseffect.fandom.com/wiki/Vendetta
|
|
|
|
Why: Vendetta held troves of important data waiting for folks to request it.
|
|
|
|
Type: Physical
|
|
|
|
Hardware: PowerEdge r210
|
|
|
|
From: 2011 (?)
|
|
|
|
Role: DNS Server
|
|
|
|
Notes: Using the server that used to be called Earth
|
2023-01-25 11:48:44 +00:00
|
|
|
*/
|
2023-09-17 19:51:08 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
nodes,
|
|
|
|
...
|
|
|
|
}: let
|
2023-01-25 11:48:44 +00:00
|
|
|
# name of the server, sets teh hostname and record for it
|
2023-09-17 19:51:08 +00:00
|
|
|
name = "vendetta";
|
|
|
|
ip_pub = "193.1.99.120";
|
|
|
|
hostname = "${name}.skynet.ie";
|
2024-05-30 13:11:45 +00:00
|
|
|
host = {
|
|
|
|
ip = ip_pub;
|
|
|
|
name = name;
|
2024-05-30 16:55:29 +00:00
|
|
|
hostname = hostname;
|
2024-05-30 13:11:45 +00:00
|
|
|
};
|
2023-01-25 11:48:44 +00:00
|
|
|
in {
|
|
|
|
imports = [
|
2023-02-24 12:09:21 +00:00
|
|
|
./hardware/RM002.nix
|
2023-01-25 11:48:44 +00:00
|
|
|
];
|
|
|
|
|
2023-12-20 16:29:39 +00:00
|
|
|
networking.hostName = name;
|
|
|
|
|
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;
|
2024-08-07 12:23:26 +00:00
|
|
|
targetUser = "root";
|
2023-11-17 11:41:22 +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
|
2023-12-22 15:52:34 +00:00
|
|
|
|
2023-12-22 18:19:27 +00:00
|
|
|
defaultGateway.interface = lib.mkForce "eno1";
|
2023-12-22 15:52:34 +00:00
|
|
|
interfaces.eno1.ipv4.addresses = [
|
|
|
|
{
|
|
|
|
address = "193.1.99.120";
|
|
|
|
prefixLength = 26;
|
|
|
|
}
|
|
|
|
];
|
2023-01-25 11:48:44 +00:00
|
|
|
};
|
|
|
|
|
2024-05-30 16:55:29 +00:00
|
|
|
services.skynet = {
|
2024-05-30 13:11:45 +00:00
|
|
|
host = host;
|
2024-05-30 16:55:29 +00:00
|
|
|
backup.enable = true;
|
|
|
|
dns = {
|
|
|
|
server = {
|
|
|
|
enable = true;
|
|
|
|
# primary dns server (ns1)
|
|
|
|
primary = true;
|
|
|
|
ip = ip_pub;
|
|
|
|
};
|
2023-07-15 14:54:42 +00:00
|
|
|
};
|
2023-01-25 11:48:44 +00:00
|
|
|
};
|
|
|
|
}
|