2023-07-20 21:05:46 +00:00
|
|
|
/*
|
|
|
|
|
2023-09-17 19:51:08 +00:00
|
|
|
Name: https://en.wikipedia.org/wiki/Skynet_(Terminator)
|
|
|
|
Why: Skynet is eternal
|
|
|
|
Type: VM
|
|
|
|
Hardware: -
|
|
|
|
From: 2023
|
|
|
|
Role: Webserver and member linux box
|
|
|
|
Notes: Does not host offical sites
|
2023-07-20 21:05:46 +00:00
|
|
|
*/
|
2023-09-17 19:51:08 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
nodes,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
name = "skynet";
|
2023-07-20 21:05:46 +00:00
|
|
|
# DMZ that ITD provided
|
2023-09-17 19:51:08 +00:00
|
|
|
ip_pub = "193.1.96.165";
|
2023-11-25 22:40:36 +00:00
|
|
|
# for internal network connectivity
|
|
|
|
ip_int = "193.1.99.82";
|
2023-09-17 19:51:08 +00:00
|
|
|
hostname = "${name}.skynet.ie";
|
2023-07-20 21:05:46 +00:00
|
|
|
in {
|
2023-07-21 01:03:04 +00:00
|
|
|
imports = [
|
2023-09-15 23:04:39 +00:00
|
|
|
../applications/skynet_users.nix
|
2023-07-21 01:03:04 +00:00
|
|
|
];
|
2023-07-20 21:05:46 +00:00
|
|
|
|
|
|
|
deployment = {
|
2024-05-23 23:00:44 +00:00
|
|
|
targetHost = hostname;
|
2023-07-20 21:05:46 +00:00
|
|
|
targetPort = 22;
|
2023-09-30 22:18:14 +00:00
|
|
|
targetUser = null;
|
2023-07-20 21:05:46 +00:00
|
|
|
|
2023-09-16 16:07:18 +00:00
|
|
|
# this one is manually deployed
|
2023-09-17 19:51:08 +00:00
|
|
|
tags = ["active-ext"];
|
2023-07-20 21:05:46 +00:00
|
|
|
};
|
|
|
|
|
2024-05-30 12:25:52 +00:00
|
|
|
services.skynet.dns.records = [
|
2023-09-17 19:51:08 +00:00
|
|
|
{
|
|
|
|
record = name;
|
|
|
|
r_type = "A";
|
|
|
|
value = ip_pub;
|
|
|
|
server = true;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
record = ip_pub;
|
|
|
|
r_type = "PTR";
|
|
|
|
value = hostname;
|
|
|
|
}
|
2023-07-20 21:05:46 +00:00
|
|
|
];
|
|
|
|
|
2023-09-15 19:36:07 +00:00
|
|
|
services.skynet_backup.host = {
|
|
|
|
ip = ip_pub;
|
|
|
|
name = name;
|
2023-07-20 21:05:46 +00:00
|
|
|
};
|
|
|
|
|
2023-09-15 23:04:39 +00:00
|
|
|
services.skynet_users = {
|
|
|
|
host = {
|
|
|
|
ip = ip_pub;
|
|
|
|
name = name;
|
|
|
|
};
|
|
|
|
};
|
2023-09-17 19:51:08 +00:00
|
|
|
}
|