woot, got actions working!
All checks were successful
Test action / Print hello world (push) Successful in 12s

This commit is contained in:
Chris Kruining 2025-08-18 12:43:21 +02:00
parent ba05f561e7
commit 3994f1fb98
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
2 changed files with 36 additions and 23 deletions

View file

@ -9,7 +9,7 @@ on:
jobs: jobs:
hello: hello:
name: Print hello world name: Print hello world
runs-on: ubuntu-latest runs-on: default
steps: steps:
- name: Echo - name: Echo
run: | run: |

View file

@ -11,6 +11,8 @@ in
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
${namespace}.services.virtualisation.podman.enable = true;
environment.systemPackages = with pkgs; [ forgejo ]; environment.systemPackages = with pkgs; [ forgejo ];
services = { services = {
@ -52,35 +54,46 @@ in
UPDATE_AVATAR = true; UPDATE_AVATAR = true;
}; };
# actions = { actions = {
# ENABLED = true; ENABLED = true;
# DEFAULT_ACTIONS_URL = "forgejo"; DEFAULT_ACTIONS_URL = "https://git.kruining.eu";
# }; };
session = { session = {
COOKIE_SECURE = true; COOKIE_SECURE = true;
}; };
mailer = {
ENABLED = true;
SMTP_ADDR = "smpts://smtp.black-mail.nl";
FROM = "noreply@kruining.eu";
USER = "noreply@kruining.eu";
}; };
}; };
# gitea-actions-runner = { mailerPasswordFile = "/var/lib/forgejo/custom/mail_password";
# package = pkgs.forgejo-actions-runner; };
# instances.default = {
# enable = true; openssh.settings.AllowUsers = [ "forgejo" ];
# name = "monolith";
# url = "https://git.kruining.eu"; gitea-actions-runner = {
# # Obtaining the path to the runner token file may differ package = pkgs.forgejo-actions-runner;
# # tokenFile should be in format TOKEN=<secret>, since it's EnvironmentFile for systemd instances.default = {
enable = true;
name = "monolith";
url = "https://git.kruining.eu";
# Obtaining the path to the runner token file may differ
# tokenFile should be in format TOKEN=<secret>, since it's EnvironmentFile for systemd
# tokenFile = config.age.secrets.forgejo-runner-token.path; # tokenFile = config.age.secrets.forgejo-runner-token.path;
# labels = [ token = "ZBetud1F0IQ9VjVFpZ9bu0FXgx9zcsy1x25yvjhw";
# "ubuntu-latest:docker://node:16-bullseye" labels = [
# "ubuntu-22.04:docker://node:16-bullseye" "default:docker://node:22-bullseye"
# "ubuntu-20.04:docker://node:16-bullseye" ];
# "ubuntu-18.04:docker://node:16-buster" settings = {
# "native:host"
# ]; };
# }; };
# }; };
caddy = { caddy = {
enable = true; enable = true;