From 39210c08719912a157d192be29f892275bab69b7 Mon Sep 17 00:00:00 2001 From: niten Date: Sun, 19 Jun 2022 13:35:30 -0700 Subject: [PATCH] Try moving LoadCredential to unitConfig --- module.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module.nix b/module.nix index c557ffd..3ecaeb0 100644 --- a/module.nix +++ b/module.nix @@ -70,7 +70,6 @@ in { serviceConfig = { ExecStart = "${pricebot}/bin/pricebot"; DynamicUser = true; - LoadCredential = "auth.token:${cfg.mattermost-auth-token-file}"; PrivateTmp = true; PrivateDevices = true; ProtectSystem = "strict"; @@ -84,6 +83,9 @@ in { Restart = "always"; StandardOutput = "journal"; }; + unitConfig = { + LoadCredential = "auth.token:${cfg.mattermost-auth-token-file}"; + }; }) cfg.monitors; }; }