2023-09-15 19:36:07 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
Name: https://hitchhikers.fandom.com/wiki/Earth
|
|
|
|
Why: Our home(page)
|
|
|
|
Type: VM
|
|
|
|
Hardware: -
|
|
|
|
From: 2023
|
|
|
|
Role: Webserver
|
|
|
|
Notes:
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
{ pkgs, lib, nodes, inputs, ... }:
|
|
|
|
let
|
|
|
|
name = "earth";
|
|
|
|
ip_pub = "193.1.99.79";
|
|
|
|
hostname = "${name}.skynet.ie";
|
|
|
|
|
|
|
|
in {
|
|
|
|
imports = [
|
2023-09-16 00:35:26 +00:00
|
|
|
../applications/skynet.ie.nix
|
2023-09-15 19:36:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
deployment = {
|
|
|
|
targetHost = ip_pub;
|
|
|
|
targetPort = 22;
|
|
|
|
targetUser = "root";
|
|
|
|
|
|
|
|
tags = [ "active-core" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# it has two network devices so two
|
|
|
|
skynet_dns.records = [
|
|
|
|
{record=name; r_type="A"; value=ip_pub; server=true;}
|
|
|
|
{record=ip_pub; r_type="PTR"; value=hostname;}
|
|
|
|
];
|
|
|
|
|
|
|
|
services.skynet_backup = {
|
|
|
|
host = {
|
|
|
|
ip = ip_pub;
|
|
|
|
name = name;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-09-16 00:35:26 +00:00
|
|
|
services.skynet = {
|
|
|
|
host = {
|
|
|
|
ip = ip_pub;
|
|
|
|
name = name;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-09-15 19:36:07 +00:00
|
|
|
}
|