feat: use calutron as the public services server

This commit is contained in:
silver 2024-05-30 13:12:37 +01:00
parent 9eafd6f53e
commit 75f0a17fcb
Signed by: silver
GPG key ID: 54E2C71918E93B74
3 changed files with 15 additions and 13 deletions

View file

@ -11,8 +11,6 @@ in {
imports = [ imports = [
./acme.nix ./acme.nix
./dns.nix ./dns.nix
./open_governance/open_governance.nix
./open_governance/keyserver.nix
]; ];
options.services.skynet = { options.services.skynet = {
@ -64,10 +62,6 @@ in {
} }
]; ];
services.skynet.open-governance.host = cfg.host;
services.skynet.keyserver.host = cfg.host;
networking.firewall.allowedTCPPorts = [80 443];
services.nginx = { services.nginx = {
enable = true; enable = true;
group = "acme"; group = "acme";

View file

@ -165,7 +165,7 @@
# trainee server # trainee server
marvin = import ./machines/marvin.nix; marvin = import ./machines/marvin.nix;
# nix cache server # Public Services
calculon = import ./machines/calculon.nix; calculon = import ./machines/calculon.nix;
}; };
}; };

View file

@ -1,11 +1,11 @@
/* /*
Name: Name: https://futurama.fandom.com/wiki/Calculon
Why: Speed everything up Why: Public Service server
Type: VM Type: VM
Hardware: - Hardware: -
From: 2024 From: 2024
Role: Nix Cache Role: Public services such as Nix Cache, Open governance stuff.
Notes: Notes:
*/ */
{ {
@ -18,9 +18,16 @@ Notes:
name = "calculon"; name = "calculon";
ip_pub = "193.1.99.82"; ip_pub = "193.1.99.82";
hostname = "${name}.skynet.ie"; hostname = "${name}.skynet.ie";
host = {
ip = ip_pub;
name = name;
};
in { in {
imports = [ imports = [
../applications/nix_cache/nix_cache.nix ../applications/nix_cache/nix_cache.nix
../applications/open_governance/open_governance.nix
../applications/open_governance/keyserver.nix
]; ];
deployment = { deployment = {
@ -46,8 +53,9 @@ in {
} }
]; ];
services.skynet.nix-cache.host = { services.skynet = {
ip = ip_pub; nix-cache.host = host;
name = name; open-governance.host = host;
keyserver.host = host;
}; };
} }