55 lines
No EOL
993 B
Nix
55 lines
No EOL
993 B
Nix
/*
|
|
|
|
Name: https://half-life.fandom.com/wiki/GLaDOS
|
|
Why: Glados has a vast experence of testing and deploying.
|
|
Type: VM
|
|
Hardware: -
|
|
From: 2023
|
|
Role: Git server
|
|
Notes: Each user has roughly 20gb os storage
|
|
20 * 100 = 2000gb
|
|
|
|
*/
|
|
|
|
{ pkgs, lib, nodes, ... }:
|
|
let
|
|
# name of the server, sets teh hostname and record for it
|
|
name = "glados";
|
|
ip_pub = "193.1.99.75";
|
|
hostname = "${name}.skynet.ie";
|
|
|
|
in {
|
|
imports = [
|
|
../applications/gitlab.nix
|
|
];
|
|
|
|
deployment = {
|
|
targetHost = hostname;
|
|
targetPort = 22;
|
|
targetUser = "root";
|
|
|
|
tags = [ "active-gitlab" ];
|
|
};
|
|
|
|
|
|
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_gitlab = {
|
|
enable = true;
|
|
host = {
|
|
ip = ip_pub;
|
|
name = name;
|
|
};
|
|
};
|
|
|
|
} |