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; + }; + }; +}