Compare commits
3 commits
c0aa5c138d
...
ad9e434a28
Author | SHA1 | Date | |
---|---|---|---|
ad9e434a28 | |||
51d8a84432 | |||
259a6df8a7 |
3 changed files with 31 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue