Add drone-docker-runner to chocolatebar

This commit is contained in:
Benjamin Bädorf 2022-05-02 23:49:08 +02:00
parent e3f7f43338
commit 5bbb3eca66
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C
2 changed files with 7 additions and 1 deletions

View file

@ -23,6 +23,7 @@ in
environment.systemPackages = with pkgs; [
wayvnc
drone-docker-runner
];
age.secrets."vnc-key.pem" = {

View file

@ -2,11 +2,16 @@
let
psCfg = config.pub-solar;
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
DRONE_RPC_PROTO = "https";
DRONE_RPC_HOST = "ci.b12f.io";
in
{
home-manager = pkgs.lib.setAttrByPath [ "users" psCfg.user.name ] {
home.sessionVariables = {
DRONE_SERVER = "https://ci.b12f.io";
inherit DRONE_RPC_HOST;
inherit DRONE_RPC_PROTO;
DRONE_SERVER = DRONE_RPC_PROTO + "://" + DRONE_RPC_HOST;
RESTIC_REPOSITORY = "sftp:root@backup.b12f.io:/media/internal/backups";
RESTIC_PASSWORD_COMMAND = "secret-tool lookup restic repository-password";
};