From 3cdfc92254301c7dd613ffdb6e45d4b6fc95f32d Mon Sep 17 00:00:00 2001 From: Superredstone Date: Sat, 7 Mar 2026 12:26:59 +0100 Subject: [PATCH] feat(service): add gitea --- machines/bomba/default.nix | 1 + machines/bomba/networking.nix | 1 + machines/bomba/services/default.nix | 6 ++++++ machines/bomba/services/gitea.nix | 14 ++++++++++++++ 4 files changed, 22 insertions(+) create mode 100644 machines/bomba/services/default.nix create mode 100644 machines/bomba/services/gitea.nix diff --git a/machines/bomba/default.nix b/machines/bomba/default.nix index b668b1e..5754706 100644 --- a/machines/bomba/default.nix +++ b/machines/bomba/default.nix @@ -6,6 +6,7 @@ ./networking.nix ./services.nix ./virtualisation.nix + ./services ]; networking.hostName = "bomba"; diff --git a/machines/bomba/networking.nix b/machines/bomba/networking.nix index 60120e8..ce0bef9 100644 --- a/machines/bomba/networking.nix +++ b/machines/bomba/networking.nix @@ -6,6 +6,7 @@ allowedTCPPorts = [ 22 5900 + 8001 ]; allowedUDPPorts = [ ]; enable = true; diff --git a/machines/bomba/services/default.nix b/machines/bomba/services/default.nix new file mode 100644 index 0000000..9fda86f --- /dev/null +++ b/machines/bomba/services/default.nix @@ -0,0 +1,6 @@ +{ ... }: +{ + imports = [ + ./gitea.nix + ]; +} diff --git a/machines/bomba/services/gitea.nix b/machines/bomba/services/gitea.nix new file mode 100644 index 0000000..e0b2174 --- /dev/null +++ b/machines/bomba/services/gitea.nix @@ -0,0 +1,14 @@ +{ ... }: +{ + services.gitea = { + enable = true; + settings = { + server = { + DOMAIN = "gitea.patrickcanal.it"; + ROOT_URL = "https://gitea.patrickcanal.it"; + HTTP_PORT = 8001; + }; + service.DISABLE_REGISTRATION = true; + }; + }; +}