Brendan Golden
255b2395f7
Some checks failed
Build_Deploy / linter (push) Successful in 6s
Build_Deploy / build (push) Successful in 3m31s
Build_Deploy / deploy_dns (push) Successful in 1m17s
Build_Deploy / deploy_active (active) (push) Failing after 35s
Build_Deploy / deploy_active (active-core) (push) Failing after 33s
Build_Deploy / deploy_active (active-ext) (push) Failing after 35s
65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
/*
|
|
|
|
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
|
|
*/
|
|
{
|
|
pkgs,
|
|
lib,
|
|
nodes,
|
|
...
|
|
}: let
|
|
# name of the server, sets teh hostname and record for it
|
|
name = "vendetta";
|
|
ip_pub = "193.1.99.120";
|
|
hostname = "${name}.skynet.ie";
|
|
host = {
|
|
ip = ip_pub;
|
|
name = name;
|
|
hostname = hostname;
|
|
};
|
|
in {
|
|
imports = [
|
|
./hardware/RM002.nix
|
|
];
|
|
|
|
networking.hostName = name;
|
|
|
|
deployment = {
|
|
targetHost = ip_pub;
|
|
targetPort = 22;
|
|
targetUser = null;
|
|
|
|
tags = ["active-dns" "dns"];
|
|
};
|
|
|
|
networking = {
|
|
# needs to have an address statically assigned
|
|
|
|
defaultGateway.interface = lib.mkForce "eno1";
|
|
interfaces.eno1.ipv4.addresses = [
|
|
{
|
|
address = "193.1.99.120";
|
|
prefixLength = 26;
|
|
}
|
|
];
|
|
};
|
|
|
|
services.skynet = {
|
|
host = host;
|
|
backup.enable = true;
|
|
dns = {
|
|
server = {
|
|
enable = true;
|
|
# primary dns server (ns1)
|
|
primary = true;
|
|
ip = ip_pub;
|
|
};
|
|
};
|
|
};
|
|
}
|