feat: added a formatter and some instructions
This commit is contained in:
parent
14ae0a9065
commit
7f3dc8946e
39 changed files with 1739 additions and 1348 deletions
|
@ -1,23 +1,25 @@
|
|||
/*
|
||||
|
||||
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
|
||||
|
||||
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";
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
nodes,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
name = "skynet";
|
||||
# DMZ that ITD provided
|
||||
ip_pub = "193.1.96.165";
|
||||
ip_int = "193.1.99.81";
|
||||
hostname = "${name}.skynet.ie";
|
||||
|
||||
ip_pub = "193.1.96.165";
|
||||
ip_int = "193.1.99.81";
|
||||
hostname = "${name}.skynet.ie";
|
||||
in {
|
||||
imports = [
|
||||
../applications/skynet_users.nix
|
||||
|
@ -29,12 +31,21 @@ in {
|
|||
targetUser = "root";
|
||||
|
||||
# this one is manually deployed
|
||||
tags = [ "active-ext" ];
|
||||
tags = ["active-ext"];
|
||||
};
|
||||
|
||||
skynet_dns.records = [
|
||||
{record=name; r_type="A"; value=ip_pub; server=true;}
|
||||
{record=ip_pub; r_type="PTR"; value=hostname;}
|
||||
{
|
||||
record = name;
|
||||
r_type = "A";
|
||||
value = ip_pub;
|
||||
server = true;
|
||||
}
|
||||
{
|
||||
record = ip_pub;
|
||||
r_type = "PTR";
|
||||
value = hostname;
|
||||
}
|
||||
];
|
||||
|
||||
services.skynet_backup.host = {
|
||||
|
@ -83,4 +94,4 @@ in {
|
|||
name = name;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue