diff --git a/flake.nix b/flake.nix index 9b85efa..9ee5d65 100644 --- a/flake.nix +++ b/flake.nix @@ -149,6 +149,9 @@ # Main skynet sites earth = import ./machines/earth.nix; + + # Nextcloud + cadie = import ./machines/cadie.nix; }; }; } diff --git a/machines/cadie.nix b/machines/cadie.nix new file mode 100644 index 0000000..e7c045b --- /dev/null +++ b/machines/cadie.nix @@ -0,0 +1,62 @@ +/* + +Name: https://en.wikipedia.org/wiki/List_of_Google_April_Fools%27_Day_jokes#CADIE +Why: CADIE is what google could have been, but they chickened out. +Type: VM +Hardware: - +From: 2023 +Role: Google but better +Notes: +*/ +{ + pkgs, + lib, + nodes, + ... +}: let + # name of the server, sets teh hostname and record for it + name = "cadie"; + ip_pub = "193.1.99.77"; + hostname = "${name}.skynet.ie"; +in { + imports = [ + ../applications/nextcloud.nix + ]; + + deployment = { + targetHost = hostname; + targetPort = 22; + targetUser = null; + + tags = ["active"]; + }; + + 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 = { + ip = ip_pub; + name = name; + }; + }; + + services.skynet_nextcloud = { + enable = true; + host = { + ip = ip_pub; + name = name; + }; + }; +}