From c5f2a7cdde0621a646ded365ad8c2695ccf87132 Mon Sep 17 00:00:00 2001 From: niten Date: Sun, 19 Jun 2022 16:48:45 -0700 Subject: [PATCH] Try just specifying the file name --- module.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module.nix b/module.nix index 3ecaeb0..93d5a30 100644 --- a/module.nix +++ b/module.nix @@ -62,13 +62,14 @@ in { environment = { PRICEBOT_EXCHANGE_HOST = cfg.exchange-host; PRICEBOT_BEBOT_URL = cfg.mattermost-url; - PRICEBOT_BEBOT_AUTH_TOKEN_FILE = "%d/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; }; serviceConfig = { - ExecStart = "${pricebot}/bin/pricebot"; + ExecStart = + "${pricebot}/bin/pricebot \${CREDENTIALS_DIRECTORY}/auth.token"; DynamicUser = true; PrivateTmp = true; PrivateDevices = true;