From 62391d2453eb23a919510e3476cfe1d4a5d783ff Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Thu, 16 Oct 2025 18:03:08 +0200 Subject: [PATCH] enable forgejo --- hosts/nuos/configuration.nix | 42 ++++++++++++++++-------------------- hosts/nuos/nginx.nix | 10 +++++++++ 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/hosts/nuos/configuration.nix b/hosts/nuos/configuration.nix index 7479c13..1f865c9 100644 --- a/hosts/nuos/configuration.nix +++ b/hosts/nuos/configuration.nix @@ -340,35 +340,29 @@ admins = [ "itepastra" ]; extraSettingsFile = config.age.secrets."factorio/solrunners".path; }; - github-runners = { - flurry-runner = { - enable = true; - extraPackages = with pkgs; [ - nodejs - curl - ]; - name = "flurry-runner"; - replace = true; - tokenFile = config.age.secrets."secrets/token-flurry".path; - url = "https://github.com/itepastra/flurry"; - }; - anstml-runner = { - enable = true; - extraPackages = with pkgs; [ - nodejs - curl - ]; - name = "anstml-runner"; - replace = true; - tokenFile = config.age.secrets."secrets/token-anstml".path; - url = "https://github.com/itepastra/anstml"; - }; - }; openssh = { enable = true; settings.PasswordAuthentication = false; settings.KbdInteractiveAuthentication = false; }; + forgejo = { + enable = true; + settings = { + server = { + DOMAIN = "geenit.nl"; + HTTP_PORT = 2929; + }; + DEFAULT = { + APP_NAME = "Solgit"; + APP_SLOGAN = "Git of da runners"; + RUN_MODE = "dev"; + }; + }; + + database = { + type = "postgres"; + }; + }; radicale = { enable = true; settings = { diff --git a/hosts/nuos/nginx.nix b/hosts/nuos/nginx.nix index e17f36a..29e39a3 100644 --- a/hosts/nuos/nginx.nix +++ b/hosts/nuos/nginx.nix @@ -72,6 +72,16 @@ in # home-assistant proxy "home.itepastra.nl" = proxy "itepastra.nl" "http://[::1]:8123"; + + "geenit.nl" = { + forceSSL = true; + enableACME = true; + extraConfig = extra; + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://127.0.0.1:2929/"; + }; + }; }) (lib.mkIf (import ./toggles.nix).enableFlurry { "flurry.itepastra.nl" = proxy "itepastra.nl" "http://127.0.0.1:3000";