1
1
This commit is contained in:
2026-01-02 23:46:32 -05:00
parent 2fc0d09f7f
commit 2a7b92cd32

View File

@@ -2,12 +2,9 @@
let baseUrl = "git.ewanick.com"; let baseUrl = "git.ewanick.com";
in in
{ {
services.forgejo = { services.gitea = {
enable = true; enable = true;
appName = "Bill's Forgejo server, hosted on Linode using NixOS"; appName = "Bill's Gitea 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;
@@ -16,29 +13,15 @@ in
}; };
service.DISABLE_REGISTRATION = true; service.DISABLE_REGISTRATION = true;
# Add support for actions, based on act: https://github.com/nektos/act
actions = { actions = {
ENABLED = true; 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 = { services.gitea-actions-runner.instances = {
package = pkgs.forgejo-runner; "first-runner" = {
instances.default = {
enable = true; enable = true;
url = baseUrl; url = baseUrl;
tokenFile = ./git.ewanick.com/tokenFile; tokenFile = ./git.ewanick.com/tokenFile;
@@ -50,9 +33,8 @@ in
gitMinimal gitMinimal
gnused gnused
wget wget
forgejo-runner
]; ];
name = "linode-nixos";
labels = [ labels = [
"native:host" "native:host"
]; ];