nixos/machines/skynet.nix

47 lines
769 B
Nix
Raw Permalink Normal View History

2023-07-20 21:05:46 +00:00
/*
Name: https://en.wikipedia.org/wiki/Skynet_(Terminator)
Why: Skynet is eternal
Type: VM
Hardware: -
From: 2023
Role: Webserver and member linux box
Notes: Does not host offical sites
2023-07-20 21:05:46 +00:00
*/
{
pkgs,
lib,
nodes,
inputs,
...
}: let
name = "skynet";
2023-07-20 21:05:46 +00:00
# DMZ that ITD provided
ip_pub = "193.1.96.165";
hostname = "${name}.skynet.ie";
host = {
ip = ip_pub;
name = name;
hostname = hostname;
};
2023-07-20 21:05:46 +00:00
in {
2023-07-21 01:03:04 +00:00
imports = [
../applications/skynet_users.nix
2023-07-21 01:03:04 +00:00
];
2023-07-20 21:05:46 +00:00
deployment = {
2024-05-23 23:00:44 +00:00
targetHost = hostname;
2023-07-20 21:05:46 +00:00
targetPort = 22;
targetUser = null;
2023-07-20 21:05:46 +00:00
# this one is manually deployed
tags = ["active-ext"];
2023-07-20 21:05:46 +00:00
};
services.skynet = {
host = host;
backup.enable = true;
website_users.enable = true;
};
}