core-services-01(drone-runners): initialize nix01
This commit is contained in:
parent
07180417cd
commit
fb43cc15e1
4 changed files with 18 additions and 2 deletions
14
machines/core-services-01/drone-runners.nix
Normal file
14
machines/core-services-01/drone-runners.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -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 = [
|
||||||
|
|
|
@ -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}";
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in a new issue