Compare commits

...

3 commits

Author SHA1 Message Date
ad9e434a28
feat: forgejo runner needs docker enabled
All checks were successful
Build_Deploy / linter (push) Successful in 11s
Build_Deploy / build (push) Successful in 4m50s
Build_Deploy / deploy_dns (push) Successful in 38s
Build_Deploy / deploy_active (active) (push) Successful in 46s
Build_Deploy / deploy_active (active-core) (push) Successful in 1m10s
Build_Deploy / deploy_active (active-ext) (push) Successful in 30s
2024-10-04 12:01:17 +01:00
51d8a84432
feat: initial removal of the gitlab runner
For scream testing
2024-10-04 12:01:17 +01:00
259a6df8a7
feat: allow for the sserver instance to sign off merge commits 2024-10-04 12:01:17 +01:00
3 changed files with 31 additions and 8 deletions

View file

@ -76,6 +76,12 @@ in {
};
};
# for signing reasons
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
services.forgejo = {
enable = true;
package = pkgs.forgejo;
@ -92,11 +98,21 @@ in {
# You can temporarily allow registration to create an admin user.
service.DISABLE_REGISTRATION = true;
# Add support for actions, based on act: https://github.com/nektos/act
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "github";
};
# Allow for signing off merge requests
"repository.signing" = {
SIGNING_KEY = "5B2DED0FE9F8627A";
SIGNING_NAME = "Skynet";
SIGNING_EMAIL = "forgejo@glados.skynet.ie";
MERGES = "always";
};
# Sending emails is completely optional
# You can send a test email from the web UI at:
# Profile Picture > Site Administration > Configuration > Mailer Configuration

View file

@ -107,6 +107,12 @@ in {
};
};
boot.kernel.sysctl."net.ipv4.ip_forward" = true; # 1
virtualisation.docker.enable = true;
# taken from https://github.com/NixOS/nixpkgs/issues/245365#issuecomment-1663854128
virtualisation.docker.listenOptions = ["/run/docker.sock" "127.0.0.1:2375"];
# the actual runner
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
@ -118,8 +124,8 @@ in {
labels = [
## optionally provide native execution on the host:
"nix:host"
"docker:docker://node:16-bullseye"
"ubuntu-latest:docker://node:16-bullseye"
"docker:docker://node:22-bookworm"
"ubuntu-latest:docker://node:22-bookworm"
];
hostPackages = with pkgs; [
@ -128,7 +134,7 @@ in {
coreutils
curl
gawk
gitMinimal
git
gnused
nodejs
wget
@ -145,6 +151,7 @@ in {
attic-client
nix
openssh
sudo
];
};
};

View file

@ -25,7 +25,7 @@ Notes:
};
in {
imports = [
../applications/git/gitlab_runner.nix
# ../applications/git/gitlab_runner.nix
../applications/git/forgejo_runner.nix
];
@ -41,10 +41,10 @@ in {
host = host;
backup.enable = true;
gitlab_runner = {
enable = true;
runner.name = "runner01";
};
# gitlab_runner = {
# enable = true;
# runner.name = "runner01";
# };
forgejo_runner.enable = true;
};