server: gitea: remove woodpecker, enable gitea actions, prototype act vm

This commit is contained in:
Kabbone 2023-05-20 13:28:55 +02:00
parent 7ad7712610
commit 6fc873f101
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
3 changed files with 33 additions and 1 deletions

View File

@ -13,7 +13,6 @@
[
./postgresql.nix
./gitea.nix
./woodpecker.nix
./nextcloud.nix
./matrix.nix
./coturn.nix

View File

@ -61,6 +61,9 @@
REGISTER_EMAIL_CONFIRM = true;
DISABLE_REGISTRATION = true;
};
actions = {
ENABLED = true;
};
};
};

View File

@ -0,0 +1,30 @@
{ lib, config, pkgs, ... }:
let
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; # Nix Packages
in
{
imports = [ <nixpkgs/nixos/modules/virtualisation/qemu-vm.nix> ];
virtualisation = {
podman ={
enable = true;
autoPrune.enable = true;
};
memorySize = 4096;
diskSize = 10240;
};
services.gitea-actions-runner.instances = {
nixrunner-test = {
enable = true;
url = "https://git.kabtop.de";
name = "nix_runner_test";
#tokenFile = "./gitea_token";
token = "vlUBkX5IbJKTBO3HAGqFM1fEOw2UqXpX87LcdJRY";
labels = [
"debian-latest:docker://node:18-bullseye"
];
};
};
users.users.root.initialPassword = "babablup";
}