nixos/machines/earth.nix

61 lines
871 B
Nix
Raw Normal View History

/*
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";
host = {
ip = ip_pub;
name = name;
};
in {
imports = [
../applications/skynet.ie.nix
];
deployment = {
2024-05-23 23:00:44 +00:00
targetHost = hostname;
targetPort = 22;
targetUser = null;
tags = ["active-core"];
};
# it has two network devices so two
services.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 = host;
};
services.skynet.website = {
host = host;
};
}