1
1

Switch to Forgejo with Runners

This commit is contained in:
2026-01-02 23:13:33 -05:00
parent d7a07ed0c7
commit f9a862ab8b

View File

@@ -2,45 +2,62 @@
let baseUrl = "git.ewanick.com"; let baseUrl = "git.ewanick.com";
in in
{ {
services.gitea = { services.forgejo = {
enable = true; enable = true;
appName = "Bill's Gitea server, hosted on Linode using NixOS"; appName = "Bill's Forgejo server, hosted on Linode using NixOS";
database.type = "postgres";
# Enable support for Git Large File Storage
lfs.enable = true;
settings = { settings = {
server = { server = {
DOMAIN = baseUrl; DOMAIN = baseUrl;
ROOT_URL = "https://${baseUrl}/"; ROOT_URL = "https://${baseUrl}/";
HTTP_PORT = 3000; HTTP_PORT = 3000;
}; };
service = { service.DISABLE_REGISTRATION = true;
DISABLE_REGISTRATION = true;
# Add support for actions, based on act: https://github.com/nektos/act
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "github";
}; };
# actions = { # 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; # ENABLED = true;
# DEFAULT_ACTIONS_URL = "self"; # 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.instances = { services.gitea-actions-runner = {
# "first-runner" = { package = pkgs.forgejo-runner;
# enable = true; instances.default = {
# url = baseUrl; enable = true;
# tokenFile = ./git.ewanick.com/tokenFile; name = "linode-nixos";
# hostPackages = with pkgs; [ url = baseUrl;
# bash tokenFile = ./git.ewanick.com/tokenFile;
# coreutils hostPackages = with pkgs; [
# curl bash
# gawk coreutils
# gitMinimal curl
# gnused gawk
# wget gitMinimal
# ]; gnused
# name = "linode-nixos"; wget
# labels = [ ];
# "native:host"
# ]; labels = [
# }; "native:host"
# }; ];
};
};
services.caddy = { services.caddy = {
enable = true; enable = true;