nixos/machines/skynet.nix
Brendan Golden 5ca3265cc1
Some checks failed
Build_Deploy / build (push) Successful in 3m40s
Build_Deploy / linter (push) Successful in 5m19s
Build_Deploy / deploy_dns (push) Failing after 2m59s
Build_Deploy / deploy_active (active) (push) Has been skipped
Build_Deploy / deploy_active (active-core) (push) Has been skipped
Build_Deploy / deploy_active (active-ext) (push) Has been skipped
feat: fixed how sometimes updating servers mean that ye had to reset teh MAC address in Proxmox.
This is done by letting each server manage its own network interface.
2025-06-18 03:14:35 +01:00

48 lines
808 B
Nix

/*
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
*/
{
pkgs,
lib,
nodes,
inputs,
...
}: let
name = "skynet";
# DMZ that ITD provided
ip_pub = "193.1.96.165";
hostname = "${name}.skynet.ie";
host = {
ip = ip_pub;
name = name;
hostname = hostname;
interface = "eth1";
cidr = 28;
};
in {
imports = [
../applications/skynet_users.nix
];
deployment = {
targetHost = hostname;
targetPort = 22;
targetUser = null;
# this one is manually deployed
tags = ["active-ext"];
};
services.skynet = {
host = host;
backup.enable = true;
website_users.enable = true;
};
}