feat: setup new baldur vps, for running forgejo actions.
This commit is contained in:
parent
e556fca10f
commit
6f40be6f3b
6 changed files with 5 additions and 50 deletions
|
|
@ -9,7 +9,6 @@ in {
|
|||
imports =
|
||||
[
|
||||
../../common
|
||||
./secrets.nix
|
||||
]
|
||||
++ hostModules;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
{inputs, ...}: {
|
||||
age = {
|
||||
secrets = {
|
||||
forgejo-runner-token = {
|
||||
file = "${inputs.secrets}/secrets/forgejo-runner-token.age";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
services.gitea-actions-runner = {
|
||||
package = pkgs.forgejo-runner;
|
||||
instances.default = {
|
||||
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"
|
||||
];
|
||||
hostPackages = with pkgs; [
|
||||
bash
|
||||
coreutils
|
||||
curl
|
||||
gawk
|
||||
gitMinimal
|
||||
gnused
|
||||
nodejs
|
||||
wget
|
||||
nix
|
||||
attic-client
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [attic-client];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue