2023-10-25 18:28:09 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
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";
|
2024-05-30 13:11:45 +00:00
|
|
|
host = {
|
|
|
|
ip = ip_pub;
|
|
|
|
name = name;
|
2024-05-30 16:55:29 +00:00
|
|
|
hostname = hostname;
|
2024-05-30 13:11:45 +00:00
|
|
|
};
|
2023-10-25 18:28:09 +00:00
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
../applications/nextcloud.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
deployment = {
|
|
|
|
targetHost = hostname;
|
|
|
|
targetPort = 22;
|
|
|
|
targetUser = null;
|
|
|
|
|
|
|
|
tags = ["active"];
|
|
|
|
};
|
|
|
|
|
2024-05-30 16:55:29 +00:00
|
|
|
services.skynet = {
|
2024-05-30 13:11:45 +00:00
|
|
|
host = host;
|
2024-05-30 16:55:29 +00:00
|
|
|
backup.enable = true;
|
|
|
|
nextcloud.enable = true;
|
2023-10-25 18:28:09 +00:00
|
|
|
};
|
2024-01-12 21:23:45 +00:00
|
|
|
|
|
|
|
# this was causing a conflict for some reason
|
|
|
|
systemd.network.enable = lib.mkForce false;
|
2023-10-25 18:28:09 +00:00
|
|
|
}
|