Skip to content

Commit

Permalink
Merge pull request #6 from alexkar598/refactor
Browse files Browse the repository at this point in the history
Reorganizes project
  • Loading branch information
Lorwp authored Feb 18, 2025
2 parents a2b2baa + abb4a40 commit 8fd93fc
Show file tree
Hide file tree
Showing 139 changed files with 405 additions and 517 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
root = true

[*.nix]
tab_width = 2
indent_size = 2
indent_style = space
8 changes: 4 additions & 4 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**/haproxy @RigglePrime
/modules/ssh_keys.nix @RigglePrime
/modules/redbot @RigglePrime
/modules/monitoring/relay-nodes.nix @RigglePrime
/nixos_systems/haproxy_byond_global.conf @RigglePrime
/nixos_systems/haproxy_relay_global.conf @RigglePrime
/systems/game-servers/systems/tgsatan/modules/redbot.nix @RigglePrime
/systems/game-servers/systems/tgsatan/modules/monitoring/relay-nodes.nix @RigglePrime
/systems/game-servers/modules/haproxy_base/haproxy.conf @RigglePrime
/systems/edge-nodes/modules/haproxy_base/haproxy.conf @RigglePrime
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,31 @@ This repository holds the IaC Config for the /tg/station Space Station 13 Server

This place is not a place of honor... no highly esteemed deed is commemorated here... nothing valued is here.

# Repository structure
```
<blorbo_name> = placeholder for the name of a blorbo
[/root/some/path] = this folder follows the same structure as /root/some/path
root/
|- modules/
| |- <single_file_module_name>.nix
| |- <module_name>/
| | |- <file_name>
| | |- default.nix
|- secrets/
| |- secrets.nix
| |- <secret_name>.age
|- systems/
| |- <system_name>/
| | |- default.nix
| | |- modules/ [root/modules]
| | |- secrets/ [root/secrets]
| |- <system_group_name>/
| | |- modules/ [root/modules]
| | |- secrets/ [root/secrets]
| | |- systems/ [root/systems]
```

# Flow of byond packets through infrastructure
```mermaid
architecture-beta
Expand Down
48 changes: 24 additions & 24 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
++ [
inputs.impermanence.nixosModules.impermanence
(import ./modules/base.nix)
(import ./users)
(import ./nixos_systems/tgsatan)
(import ./modules/users)
(import ./systems/game-servers/systems/tgsatan)
];
};

Expand All @@ -94,8 +94,8 @@
flakeModules
++ [
(import ./modules/base.nix)
(import ./users)
(import ./nixos_systems/vpn.nix)
(import ./modules/users)
(import ./systems/vpn)
];
};

Expand All @@ -111,8 +111,8 @@
flakeModules
++ [
(import ./modules/base.nix)
(import ./users)
(import ./nixos_systems/relay-node/us/dallas.nix)
(import ./modules/users)
(import ./systems/edge-nodes/systems/us-dallas.nix)
];
};

Expand All @@ -128,8 +128,8 @@
flakeModules
++ [
(import ./modules/base.nix)
(import ./users)
(import ./nixos_systems/relay-node/us/chicago.nix)
(import ./modules/users)
(import ./systems/edge-nodes/systems/us-chicago.nix)
];
};

Expand All @@ -145,8 +145,8 @@
flakeModules
++ [
(import ./modules/base.nix)
(import ./users)
(import ./nixos_systems/relay-node/us/atlanta.nix)
(import ./modules/users)
(import ./systems/edge-nodes/systems/us-atlanta.nix)
];
};

Expand All @@ -160,8 +160,8 @@
++ [
inputs.impermanence.nixosModules.impermanence
(import ./modules/base.nix)
(import ./users)
(import ./nixos_systems/blockmoths)
(import ./modules/users)
(import ./systems/game-servers/systems/blockmoths)
];
};
wiggle = {
Expand All @@ -176,8 +176,8 @@
flakeModules
++ [
(import ./modules/base.nix)
(import ./users)
(import ./nixos_systems/staging/wiggle)
(import ./modules/users)
(import ./systems/game-servers/systems/staging)
];
};
warsaw = {
Expand All @@ -192,8 +192,8 @@
flakeModules
++ [
(import ./modules/base.nix)
(import ./users)
(import ./nixos_systems/relay-node/staging/warsaw.nix)
(import ./modules/users)
(import ./systems/edge-nodes/systems/staging)
];
};
lime = {
Expand All @@ -208,8 +208,8 @@
flakeModules
++ [
(import ./modules/base.nix)
(import ./users)
(import ./nixos_systems/relay-node/us/lime.nix)
(import ./modules/users)
(import ./systems/edge-nodes/systems/us-lime.nix)
];
};
bratwurst = {
Expand All @@ -225,8 +225,8 @@
flakeModules
++ [
(import ./modules/base.nix)
(import ./users)
(import ./nixos_systems/relay-node/eu/bratwurst.nix)
(import ./modules/users)
(import ./systems/edge-nodes/systems/eu-bratwurst.nix)
];
};
dachshund = {
Expand All @@ -242,8 +242,8 @@
flakeModules
++ [
(import ./modules/base.nix)
(import ./users)
(import ./nixos_systems/relay-node/eu/dachshund.nix)
(import ./modules/users)
(import ./systems/edge-nodes/systems/eu-dachshund.nix)
];
};
knipp = {
Expand All @@ -259,8 +259,8 @@
flakeModules
++ [
(import ./modules/base.nix)
(import ./users)
(import ./nixos_systems/relay-node/eu/knipp.nix)
(import ./modules/users)
(import ./systems/edge-nodes/systems/eu-knipp.nix)
];
};
in {
Expand Down
File renamed without changes.
File renamed without changes.
9 changes: 0 additions & 9 deletions modules/atticd/secrets/secrets.nix

This file was deleted.

10 changes: 0 additions & 10 deletions modules/garage/secrets/secrets.nix

This file was deleted.

72 changes: 0 additions & 72 deletions modules/monitoring/prometheus.nix

This file was deleted.

23 changes: 0 additions & 23 deletions modules/monitoring/relay-nodes.nix

This file was deleted.

2 changes: 1 addition & 1 deletion modules/ssh_keys.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ builtins.concatLists
})
.users
.users)
((import ../users/operator) {}).imports)))
((import ./users/operator) {}).imports)))
File renamed without changes.
24 changes: 0 additions & 24 deletions modules/tgs/secrets/secrets.nix

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 0 additions & 14 deletions nixos_systems/relay-node/caddy/secrets/secrets.nix

This file was deleted.

40 changes: 0 additions & 40 deletions nixos_systems/relay-node/haproxy/default.nix

This file was deleted.

9 changes: 0 additions & 9 deletions nixos_systems/relay-node/staging/caddy/secrets/secrets.nix

This file was deleted.

Loading

0 comments on commit 8fd93fc

Please sign in to comment.