nixos/machines/galatea.nix

46 lines
735 B
Nix
Raw Permalink Normal View History

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:
2023-01-25 11:48:44 +00:00
*/
{
pkgs,
lib,
nodes,
config,
...
}: let
2023-01-25 11:48:44 +00:00
# name of the server, sets teh hostname and record for it
name = "galatea";
ip_pub = "193.1.99.111";
hostname = "${name}.skynet.ie";
host = {
ip = ip_pub;
name = name;
hostname = hostname;
};
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 = null;
2023-04-21 00:22:16 +00:00
tags = ["active"];
2023-01-25 11:48:44 +00:00
};
services.skynet = {
host = host;
backup.enable = true;
ulfm.enable = true;
2023-05-24 14:59:22 +00:00
};
2023-01-25 11:48:44 +00:00
}