nixos/machines/skynet.nix

64 lines
1 KiB
Nix
Raw Normal View History

2023-07-20 21:05:46 +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
*/
{
pkgs,
lib,
nodes,
inputs,
...
}: let
name = "skynet";
2023-07-20 21:05:46 +00:00
# DMZ that ITD provided
ip_pub = "193.1.96.165";
# for internal network connectivity
ip_int = "193.1.99.82";
hostname = "${name}.skynet.ie";
2023-07-20 21:05:46 +00:00
in {
2023-07-21 01:03:04 +00:00
imports = [
../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;
targetUser = null;
2023-07-20 21:05:46 +00:00
# this one is manually deployed
tags = ["active-ext"];
2023-07-20 21:05:46 +00:00
};
skynet_dns.records = [
{
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
];
services.skynet_backup.host = {
ip = ip_pub;
name = name;
2023-07-20 21:05:46 +00:00
};
services.skynet_users = {
host = {
ip = ip_pub;
name = name;
};
};
}