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 = {
|
services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.forgejo;
|
package = pkgs.forgejo;
|
||||||
|
@ -92,11 +98,21 @@ in {
|
||||||
|
|
||||||
# You can temporarily allow registration to create an admin user.
|
# You can temporarily allow registration to create an admin user.
|
||||||
service.DISABLE_REGISTRATION = true;
|
service.DISABLE_REGISTRATION = true;
|
||||||
|
|
||||||
# Add support for actions, based on act: https://github.com/nektos/act
|
# Add support for actions, based on act: https://github.com/nektos/act
|
||||||
actions = {
|
actions = {
|
||||||
ENABLED = true;
|
ENABLED = true;
|
||||||
DEFAULT_ACTIONS_URL = "github";
|
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
|
# Sending emails is completely optional
|
||||||
# You can send a test email from the web UI at:
|
# You can send a test email from the web UI at:
|
||||||
# Profile Picture > Site Administration > Configuration > Mailer Configuration
|
# 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
|
# the actual runner
|
||||||
services.gitea-actions-runner = {
|
services.gitea-actions-runner = {
|
||||||
package = pkgs.forgejo-actions-runner;
|
package = pkgs.forgejo-actions-runner;
|
||||||
|
@ -118,8 +124,8 @@ in {
|
||||||
labels = [
|
labels = [
|
||||||
## optionally provide native execution on the host:
|
## optionally provide native execution on the host:
|
||||||
"nix:host"
|
"nix:host"
|
||||||
"docker:docker://node:16-bullseye"
|
"docker:docker://node:22-bookworm"
|
||||||
"ubuntu-latest:docker://node:16-bullseye"
|
"ubuntu-latest:docker://node:22-bookworm"
|
||||||
];
|
];
|
||||||
|
|
||||||
hostPackages = with pkgs; [
|
hostPackages = with pkgs; [
|
||||||
|
@ -128,7 +134,7 @@ in {
|
||||||
coreutils
|
coreutils
|
||||||
curl
|
curl
|
||||||
gawk
|
gawk
|
||||||
gitMinimal
|
git
|
||||||
gnused
|
gnused
|
||||||
nodejs
|
nodejs
|
||||||
wget
|
wget
|
||||||
|
@ -145,6 +151,7 @@ in {
|
||||||
attic-client
|
attic-client
|
||||||
nix
|
nix
|
||||||
openssh
|
openssh
|
||||||
|
sudo
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -25,7 +25,7 @@ Notes:
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../applications/git/gitlab_runner.nix
|
# ../applications/git/gitlab_runner.nix
|
||||||
../applications/git/forgejo_runner.nix
|
../applications/git/forgejo_runner.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -41,10 +41,10 @@ in {
|
||||||
host = host;
|
host = host;
|
||||||
backup.enable = true;
|
backup.enable = true;
|
||||||
|
|
||||||
gitlab_runner = {
|
# gitlab_runner = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
runner.name = "runner01";
|
# runner.name = "runner01";
|
||||||
};
|
# };
|
||||||
|
|
||||||
forgejo_runner.enable = true;
|
forgejo_runner.enable = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue