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";
|
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-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 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;
|
|
|
|
website_users.enable = true;
|
2023-09-15 23:04:39 +00:00
|
|
|
};
|
2023-09-17 19:51:08 +00:00
|
|
|
}
|