2024-05-12 02:47:20 +00:00
|
|
|
/*
|
|
|
|
|
2024-05-30 12:12:37 +00:00
|
|
|
Name: https://futurama.fandom.com/wiki/Calculon
|
|
|
|
Why: Public Service server
|
2024-05-12 02:47:20 +00:00
|
|
|
Type: VM
|
|
|
|
Hardware: -
|
|
|
|
From: 2024
|
2024-05-30 12:12:37 +00:00
|
|
|
Role: Public services such as Nix Cache, Open governance stuff.
|
2024-05-12 02:47:20 +00:00
|
|
|
Notes:
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
nodes,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
name = "calculon";
|
|
|
|
ip_pub = "193.1.99.82";
|
|
|
|
hostname = "${name}.skynet.ie";
|
2024-05-30 12:12:37 +00:00
|
|
|
|
|
|
|
host = {
|
|
|
|
ip = ip_pub;
|
|
|
|
name = name;
|
2024-05-30 16:55:29 +00:00
|
|
|
hostname = hostname;
|
2024-05-30 12:12:37 +00:00
|
|
|
};
|
2024-05-12 02:47:20 +00:00
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
../applications/nix_cache/nix_cache.nix
|
2024-05-30 12:12:37 +00:00
|
|
|
../applications/open_governance/open_governance.nix
|
|
|
|
../applications/open_governance/keyserver.nix
|
2024-05-12 02:47:20 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
deployment = {
|
2024-05-23 23:30:25 +00:00
|
|
|
targetHost = hostname;
|
2024-05-12 02:47:20 +00:00
|
|
|
targetPort = 22;
|
|
|
|
targetUser = null;
|
|
|
|
|
2024-05-12 03:57:26 +00:00
|
|
|
tags = ["active"];
|
2024-05-12 02:47:20 +00:00
|
|
|
};
|
|
|
|
|
2024-05-30 12:12:37 +00:00
|
|
|
services.skynet = {
|
2024-05-30 16:55:29 +00:00
|
|
|
host = host;
|
|
|
|
backup.enable = true;
|
|
|
|
nix-cache.enable = true;
|
|
|
|
open-governance.enable = true;
|
|
|
|
keyserver.enable = true;
|
2024-05-12 02:47:20 +00:00
|
|
|
};
|
|
|
|
}
|