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; }; }