feat: some more settings for the forgejo runner.
Some checks failed
/ cache (push) Failing after 1h24m9s
Some checks failed
/ cache (push) Failing after 1h24m9s
This commit is contained in:
parent
7a5f4549ac
commit
853b85d94f
1 changed files with 10 additions and 2 deletions
|
|
@ -9,13 +9,12 @@
|
|||
enable = true;
|
||||
name = "monolith";
|
||||
url = "https://git.cronyakatsuki.xyz";
|
||||
# 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;
|
||||
labels = [
|
||||
## optionally provide native execution on the host:
|
||||
"debian-latest:docker://node:18-bullseye"
|
||||
"native:host"
|
||||
"ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-24.04"
|
||||
];
|
||||
hostPackages = with pkgs; [
|
||||
bash
|
||||
|
|
@ -33,4 +32,13 @@
|
|||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [attic-client];
|
||||
|
||||
nix.settings.trusted-users = ["root" "gitea-runner" "@wheel"];
|
||||
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/var/lib/swapfile";
|
||||
size = 16 * 1024; # 16 GB
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue