nixos/machines/glados.nix
Brendan Golden 1d946308b6
Some checks failed
Build_Deploy / linter (push) Successful in 19s
Build_Deploy / build (push) Successful in 46s
Build_Deploy / deploy_dns (push) Successful in 2m12s
Build_Deploy / deploy_active (active) (push) Successful in 2m43s
Build_Deploy / deploy_active (active-ext) (push) Successful in 1m3s
Build_Deploy / deploy_active (active-core) (push) Failing after 7m13s
feat: scream test for Gitlab
2025-03-03 18:34:53 +00:00

50 lines
942 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";
host = {
ip = ip_pub;
name = name;
hostname = hostname;
};
in {
imports = [
../applications/git/forgejo.nix
../applications/git/forgejo_runner.nix
];
deployment = {
targetHost = hostname;
targetPort = 22;
targetUser = null;
tags = ["active-git"];
};
services.skynet = {
host = host;
backup.enable = true;
forgejo.enable = true;
forgejo_runner = {
enable = true;
secret = ../secrets/forgejo/runners/token2.age;
};
};
}