core-services-01(drone-runners): initialize nix01

This commit is contained in:
Raito Bezarius 2021-07-26 02:55:35 +02:00
parent 07180417cd
commit fb43cc15e1
4 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,14 @@
{ config, lib, ... }:
let
capacity = 10;
in
{
services.drone-exec-runner.nix01 = {
enable = true;
env = [
"DRONE_RUNNER_CAPACITY=${toString capacity}"
"CLIENT_DRONE_RPC_HOST=127.0.0.1:${toString config.services.drone-server.port}"
];
envFile = config.age.secrets.droneKeyFile.path;
};
}

View file

@ -5,7 +5,9 @@ in
{ {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"drone.io" "drone.io"
"drone-runner-exec"
]; ];
services.drone-server = { services.drone-server = {
enable = true; enable = true;
env = [ env = [

View file

@ -5,7 +5,7 @@ let
port = 3000; port = 3000;
in in
{ {
imports = [ ./drone.nix ]; imports = [ ./drone.nix ./drone-runners.nix ];
services.gitea = { services.gitea = {
enable = true; enable = true;
domain = "git.${my.subZone}"; domain = "git.${my.subZone}";

View file

@ -14,7 +14,7 @@
"klubrz-nur": { "klubrz-nur": {
"branch": "main", "branch": "main",
"repo": "https://git.rz.ens.wtf/Klub-RZ/nur", "repo": "https://git.rz.ens.wtf/Klub-RZ/nur",
"rev": "a567fa82ffcde61719c5409c472360eaee7b9611", "rev": "420773149ef98de6a19ae6c551f9f4c6b60e0c1c",
"type": "git" "type": "git"
}, },
"niv": { "niv": {