Compare commits
No commits in common. "ad9e434a286b5b8c997c3812b912c774f8ac2a13" and "c0aa5c138d876676cf5ac7b725147e8616d5f2c2" have entirely different histories.
ad9e434a28
...
c0aa5c138d
3 changed files with 8 additions and 31 deletions
|
@ -76,12 +76,6 @@ 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;
|
||||||
|
@ -98,21 +92,11 @@ 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,12 +107,6 @@ 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;
|
||||||
|
@ -124,8 +118,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:22-bookworm"
|
"docker:docker://node:16-bullseye"
|
||||||
"ubuntu-latest:docker://node:22-bookworm"
|
"ubuntu-latest:docker://node:16-bullseye"
|
||||||
];
|
];
|
||||||
|
|
||||||
hostPackages = with pkgs; [
|
hostPackages = with pkgs; [
|
||||||
|
@ -134,7 +128,7 @@ in {
|
||||||
coreutils
|
coreutils
|
||||||
curl
|
curl
|
||||||
gawk
|
gawk
|
||||||
git
|
gitMinimal
|
||||||
gnused
|
gnused
|
||||||
nodejs
|
nodejs
|
||||||
wget
|
wget
|
||||||
|
@ -151,7 +145,6 @@ 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