From 7520c9a86dd20d7e0065c771f8156ad217e11231 Mon Sep 17 00:00:00 2001 From: "Chinmay D. Pai" Date: Mon, 2 Sep 2024 19:18:38 +0530 Subject: [PATCH] fix: use correct ssh domain and port for gitea Signed-off-by: Chinmay D. Pai --- modules/nixos/services/gitea/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/nixos/services/gitea/default.nix b/modules/nixos/services/gitea/default.nix index 0895ad1..68658d9 100644 --- a/modules/nixos/services/gitea/default.nix +++ b/modules/nixos/services/gitea/default.nix @@ -1,5 +1,8 @@ -{ config, lib, ... }: { + config, + lib, + ... +}: { options.snowflake.services.gitea = { enable = lib.mkEnableOption "Enable gitea service"; @@ -60,7 +63,7 @@ HTTP_ADDR = "127.0.0.1"; HTTP_PORT = config.snowflake.services.gitea.httpPort; ROOT_URL = "https://${config.snowflake.services.gitea.domain}"; - SSH_DOMAIN = "https://${config.snowflake.services.gitea.sshDomain}"; + SSH_DOMAIN = config.snowflake.services.gitea.sshDomain; SSH_PORT = config.snowflake.services.gitea.sshPort; }; service = { @@ -81,7 +84,7 @@ }; networking.firewall = lib.mkIf config.networking.firewall.enable { - allowedTCPPorts = [ config.snowflake.services.gitea.sshPort ]; + allowedTCPPorts = [config.snowflake.services.gitea.sshPort]; }; users.users.git = { @@ -91,7 +94,7 @@ group = "git"; isSystemUser = true; }; - users.groups.git = { }; + users.groups.git = {}; services.nginx = { virtualHosts = {