mkCljBin creates an executable. Duh.

This commit is contained in:
2022-06-19 12:11:44 -07:00
parent 9b814937b8
commit 710ae58885
2 changed files with 5 additions and 4 deletions
+2 -3
View File
@@ -1,5 +1,4 @@
pricebot-jar:
{ config, lib, pkgs, ... }:
{ pricebot, config, lib, pkgs, ... }:
with lib;
let
@@ -69,7 +68,7 @@ in {
PRICEBOT_NOTIFY_USER = opts.notify-user;
};
serviceConfig = {
ExecStart = "${pkgs.jre}/bin/java -jar ${pricebot-jar}";
ExecStart = "${pricebot}/bin/pricebot";
ExecStartPre =
"+${pkgs.coreutils-full}/bin/install --owner=%u --mode=400 -T ${cfg.mattermost-auth-token-file} %T/auth.token";
DynamicUser = true;