Add in a demo Gitea runner task
This commit is contained in:
@@ -1,46 +1,49 @@
|
||||
{ pkgs, ... }:
|
||||
let baseUrl = "git.ewanick.com";
|
||||
let
|
||||
baseUrl = "git.ewanick.com";
|
||||
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/git.ewanick.com";
|
||||
in
|
||||
{
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
appName = "Bill's Gitea server, hosted on Linode using NixOS";
|
||||
lfs.enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = baseUrl;
|
||||
ROOT_URL = "https://${baseUrl}/";
|
||||
HTTP_PORT = 3000;
|
||||
};
|
||||
service = {
|
||||
DISABLE_REGISTRATION = true;
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
|
||||
actions = {
|
||||
ENABLED = true;
|
||||
DEFAULT_ACTIONS_URL = "github";
|
||||
};
|
||||
# actions = {
|
||||
# ENABLED = true;
|
||||
# DEFAULT_ACTIONS_URL = "self";
|
||||
# };
|
||||
};
|
||||
};
|
||||
|
||||
# services.gitea-actions-runner.instances = {
|
||||
# "first-runner" = {
|
||||
# enable = true;
|
||||
# url = baseUrl;
|
||||
# tokenFile = ./git.ewanick.com/tokenFile;
|
||||
# hostPackages = with pkgs; [
|
||||
# bash
|
||||
# coreutils
|
||||
# curl
|
||||
# gawk
|
||||
# gitMinimal
|
||||
# gnused
|
||||
# wget
|
||||
# ];
|
||||
# name = "linode-nixos";
|
||||
# labels = [
|
||||
# "native:host"
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
services.gitea-actions-runner = {
|
||||
instances.default = {
|
||||
enable = true;
|
||||
name = "linode-nixos";
|
||||
url = "https://${baseUrl}/";
|
||||
tokenFile = "${PROJECT_ROOT}/tokenFile";
|
||||
hostPackages = with pkgs; [
|
||||
bash
|
||||
coreutils
|
||||
curl
|
||||
gawk
|
||||
gitMinimal
|
||||
gnused
|
||||
wget
|
||||
];
|
||||
labels = [
|
||||
"debian-latest:docker://node:23-bookworm"
|
||||
"native:host"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
@@ -52,6 +55,8 @@ in
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user