From 653ac8f5f0c7c0d797a065822e9190d1e363db1f Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 8 Jan 2023 01:54:22 +0000 Subject: [PATCH] updateplexpass: use Plex Pass key to fetch new versions --- nix/pkgs/updateplexpass.sh | 2 +- ops/vault/cfg/config.nix | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/pkgs/updateplexpass.sh b/nix/pkgs/updateplexpass.sh index fdca5aca8a..8a7d9885e9 100755 --- a/nix/pkgs/updateplexpass.sh +++ b/nix/pkgs/updateplexpass.sh @@ -3,7 +3,7 @@ # # SPDX-License-Identifier: Apache-2.0 -VERSION_JSON_URL="https://plex.tv/pms/downloads/5.json?channel=plexpass" +VERSION_JSON_URL="https://plex.tv/pms/downloads/5.json?channel=plexpass&X-Plex-Token=$(vault kv get -field=token kv/apps/plex-pass)" alias jq="nix run depot.pkgs.jq -c jq" VERSION_JSON="$(curl "$VERSION_JSON_URL")" diff --git a/ops/vault/cfg/config.nix b/ops/vault/cfg/config.nix index d1df1f4149..f1a1762823 100644 --- a/ops/vault/cfg/config.nix +++ b/ops/vault/cfg/config.nix @@ -66,6 +66,7 @@ ''; my.apps.authentik = {}; my.apps.gitlab-runner = {}; + my.apps.plex-pass = {}; my.servers.etheroute-lon01.apps = [ "pomerium" ]; my.servers.porcorosso.apps = [ "quotesdb" ]; @@ -76,5 +77,6 @@ my.servers.bvm-matrix.apps = [ "turn" "matrix-synapse" ]; my.servers.bvm-prosody.apps = [ "turn" ]; my.servers.bvm-heptapod.apps = [ "gitlab-runner" ]; + my.servers.bvm-nixosmgmt.apps = [ "plex-pass" ]; my.servers.blade-tuvok.apps = [ "fup" ]; }