From 2a7b92cd323f7e274476f979de3551e889e6eb72 Mon Sep 17 00:00:00 2001 From: Bill Ewanick Date: Fri, 2 Jan 2026 23:46:32 -0500 Subject: [PATCH] WIP --- nixos-apps/git.ewanick.com.nix | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/nixos-apps/git.ewanick.com.nix b/nixos-apps/git.ewanick.com.nix index 7ede3e0..2af7b0b 100644 --- a/nixos-apps/git.ewanick.com.nix +++ b/nixos-apps/git.ewanick.com.nix @@ -2,12 +2,9 @@ let baseUrl = "git.ewanick.com"; in { - services.forgejo = { + services.gitea = { enable = true; - appName = "Bill's Forgejo server, hosted on Linode using NixOS"; - database.type = "postgres"; - # Enable support for Git Large File Storage - lfs.enable = true; + appName = "Bill's Gitea server, hosted on Linode using NixOS"; settings = { server = { DOMAIN = baseUrl; @@ -16,29 +13,15 @@ in }; service.DISABLE_REGISTRATION = true; - # Add support for actions, based on act: https://github.com/nektos/act actions = { ENABLED = true; - DEFAULT_ACTIONS_URL = "github"; + DEFAULT_ACTIONS_URL = "self"; }; - # Sending emails is completely optional - # You can send a test email from the web UI at: - # Profile Picture > Site Administration > Configuration > Mailer Configuration - # mailer = { - # ENABLED = true; - # SMTP_ADDR = "mail.example.com"; - # FROM = "noreply@${srv.DOMAIN}"; - # USER = "noreply@${srv.DOMAIN}"; - # }; }; - # secrets = { - # mailer.PASSWD = config.age.secrets.forgejo-mailer-password.path; - # }; }; - services.gitea-actions-runner = { - package = pkgs.forgejo-runner; - instances.default = { + services.gitea-actions-runner.instances = { + "first-runner" = { enable = true; url = baseUrl; tokenFile = ./git.ewanick.com/tokenFile; @@ -50,9 +33,8 @@ in gitMinimal gnused wget - forgejo-runner ]; - + name = "linode-nixos"; labels = [ "native:host" ];