From c10fc396e12c83ac46d1d197b0b911dd2d723b31 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   | 2 +-
 hosts/VEGAS/system.nix                                       | 1 -
 3 files changed, 6 insertions(+), 2 deletions(-)
 rename hosts/VEGAS/services/gitlab/default.nix => cluster/services/gitlab/host.nix (98%)

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 98%
rename from hosts/VEGAS/services/gitlab/default.nix
rename to cluster/services/gitlab/host.nix
index 6bd77f4..85f548c 100644
--- a/hosts/VEGAS/services/gitlab/default.nix
+++ b/cluster/services/gitlab/host.nix
@@ -9,7 +9,7 @@ let
     owner = "gitlab";
     group = "gitlab";
     mode = "0400";
-    file = ../../../../secrets/${name}.age;
+    file = ../../../secrets/${name}.age;
   };
 
   secrets = lib.mapAttrs (_: v: v.path) config.age.secrets;
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