From 5bbb3eca66740ee7c520710aa048a28fd5da6e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Mon, 2 May 2022 23:49:08 +0200 Subject: [PATCH] Add drone-docker-runner to chocolatebar --- hosts/chocolatebar/chocolatebar.nix | 1 + users/ben/session-variables.nix | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hosts/chocolatebar/chocolatebar.nix b/hosts/chocolatebar/chocolatebar.nix index 3708428..eb6efd7 100644 --- a/hosts/chocolatebar/chocolatebar.nix +++ b/hosts/chocolatebar/chocolatebar.nix @@ -23,6 +23,7 @@ in environment.systemPackages = with pkgs; [ wayvnc + drone-docker-runner ]; age.secrets."vnc-key.pem" = { diff --git a/users/ben/session-variables.nix b/users/ben/session-variables.nix index 7ab5c0c..b6c3894 100644 --- a/users/ben/session-variables.nix +++ b/users/ben/session-variables.nix @@ -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"; };