From 3ec45f571f2190f2d51c9a0064e13b3d43291c2e Mon Sep 17 00:00:00 2001 From: niten Date: Sun, 19 Jun 2022 12:34:04 -0700 Subject: [PATCH] Apparently for env, %d is needed, not $CRED_DIR. See: https://www.freedesktop.org/software/systemd/man/systemd.exec.html#LoadCredential=ID:PATH --- module.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module.nix b/module.nix index 852c12a..0fb1589 100644 --- a/module.nix +++ b/module.nix @@ -63,7 +63,7 @@ in { environment = { PRICEBOT_EXCHANGE_HOST = cfg.exchange-host; PRICEBOT_BEBOT_URL = cfg.mattermost-url; - PRICEBOT_BEBOT_AUTH_TOKEN_FILE = "$CREDENTIALS_DIRECTORY/auth.token"; + PRICEBOT_BEBOT_AUTH_TOKEN_FILE = "%d/auth.token"; PRICEBOT_BEBOT_CHANNEL_ID = opts.mattermost-channel-id; PRICEBOT_TARGET_CURRENCY = opts.currency; PRICEBOT_NOTIFY_USER = opts.notify-user;