WIP
This commit is contained in:
@@ -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"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user