From abdf08be6ffea7442ef82712008a436bd12f3633 Mon Sep 17 00:00:00 2001
From: Max <max@privatevoid.net>
Date: Sat, 20 Jul 2024 23:00:52 +0200
Subject: [PATCH] cluster/services/gitlab: move from VEGAS/gitlab

---
 cluster/services/gitlab/default.nix                          | 5 +++++
 .../gitlab/default.nix => cluster/services/gitlab/host.nix   | 0
 hosts/VEGAS/system.nix                                       | 1 -
 3 files changed, 5 insertions(+), 1 deletion(-)
 rename hosts/VEGAS/services/gitlab/default.nix => cluster/services/gitlab/host.nix (100%)

diff --git a/cluster/services/gitlab/default.nix b/cluster/services/gitlab/default.nix
index a0c4eef..fd1c416 100644
--- a/cluster/services/gitlab/default.nix
+++ b/cluster/services/gitlab/default.nix
@@ -1,5 +1,10 @@
 { depot, ... }:
 
 {
+  services.gitlab = {
+    nodes.host = [ "VEGAS" ];
+    nixos.host = ./host.nix;
+  };
+
   dns.records.git.target = [ depot.hours.VEGAS.interfaces.primary.addrPublic ];
 }
diff --git a/hosts/VEGAS/services/gitlab/default.nix b/cluster/services/gitlab/host.nix
similarity index 100%
rename from hosts/VEGAS/services/gitlab/default.nix
rename to cluster/services/gitlab/host.nix
diff --git a/hosts/VEGAS/system.nix b/hosts/VEGAS/system.nix
index 6b7a86a..e601dcf 100644
--- a/hosts/VEGAS/system.nix
+++ b/hosts/VEGAS/system.nix
@@ -18,7 +18,6 @@
       ./services/backbone-routing
       ./services/bitwarden
       ./services/cdn-shield
-      ./services/gitlab
       ./services/jokes
       ./services/mail
       ./services/minecraft