diff --git a/modules/nixos/features/forgejo.nix b/modules/nixos/features/forgejo.nix index ac2d647..f6766d9 100644 --- a/modules/nixos/features/forgejo.nix +++ b/modules/nixos/features/forgejo.nix @@ -8,7 +8,6 @@ let certloc = "/var/lib/acme/fi33.buzz"; hostname = "git.fi33.buzz"; url = "https://git.fi33.buzz"; - sshPort = lib.head config.services.openssh.ports; in { services = { @@ -25,7 +24,7 @@ in DOMAIN = hostname; HTTP_PORT = port; ROOT_URL = url; - SSH_PORT = sshPort; + SSH_PORT = lib.head config.services.openssh.ports; # keep-sorted end }; service.DISABLE_REGISTRATION = true; @@ -36,32 +35,6 @@ in openssh.settings.AllowUsers = [ "git" ]; - gatus.settings.endpoints = [ - { - name = "Forgejo"; - group = "Private Services"; - inherit url; - interval = "5m"; - conditions = [ - "[STATUS] == 200" - "[CONNECTED] == true" - "[RESPONSE_TIME] < 500" - ]; - alerts = [ { type = "ntfy"; } ]; - } - { - name = "Forgejo SSH"; - group = "Private Services"; - url = "ssh://${hostname}:${toString sshPort}"; - interval = "5m"; - conditions = [ - "[CONNECTED] == true" - "[RESPONSE_TIME] < 500" - ]; - alerts = [ { type = "ntfy"; } ]; - } - ]; - borgbackup.jobs = { onsite.paths = [ "/var/lib/forgejo" ]; offsite.paths = [ "/var/lib/forgejo" ];