2023-01-25 11:48:44 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
Name: https://en.wikipedia.org/wiki/Galatea_(mythology)
|
|
|
|
Why: Created as a product of artistic expression
|
|
|
|
Type: VM
|
|
|
|
Hardware: -
|
|
|
|
From: 2023
|
|
|
|
Role: Icecast server for ULFM
|
|
|
|
Notes:
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
{ pkgs, lib, nodes, config, ... }:
|
|
|
|
let
|
|
|
|
# name of the server, sets teh hostname and record for it
|
|
|
|
name = "galatea";
|
|
|
|
ip_pub = "193.1.99.111";
|
2023-04-20 13:07:26 +00:00
|
|
|
hostname = "${name}.skynet.ie";
|
2023-01-25 11:48:44 +00:00
|
|
|
in {
|
|
|
|
imports = [
|
2023-04-21 00:44:11 +00:00
|
|
|
../applications/ulfm.nix
|
2023-01-25 11:48:44 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
deployment = {
|
|
|
|
targetHost = hostname;
|
|
|
|
targetPort = 22;
|
|
|
|
targetUser = "root";
|
2023-04-21 00:22:16 +00:00
|
|
|
|
|
|
|
tags = [ "active" ];
|
2023-01-25 11:48:44 +00:00
|
|
|
};
|
|
|
|
|
2023-07-16 00:53:21 +00:00
|
|
|
skynet_dns.records = [
|
|
|
|
{record=name; r_type="A"; value=ip_pub; server=true;}
|
|
|
|
{record=ip_pub; r_type="PTR"; value=hostname;}
|
|
|
|
];
|
2023-05-24 14:59:22 +00:00
|
|
|
|
2023-07-15 14:05:57 +00:00
|
|
|
services.skynet_backup = {
|
|
|
|
host = {
|
|
|
|
ip = ip_pub;
|
|
|
|
name = name;
|
|
|
|
};
|
|
|
|
};
|
2023-05-24 14:59:22 +00:00
|
|
|
|
|
|
|
services.skynet_ulfm = {
|
|
|
|
enable = true;
|
|
|
|
host = {
|
|
|
|
ip = ip_pub;
|
|
|
|
name = name;
|
|
|
|
};
|
|
|
|
};
|
2023-01-25 11:48:44 +00:00
|
|
|
}
|