mkCljBin creates an executable. Duh.
This commit is contained in:
parent
9b814937b8
commit
710ae58885
|
@ -29,7 +29,9 @@
|
|||
|
||||
defaultPackage = self.packages."${system}".fudo-pricebot;
|
||||
|
||||
nixosModule = import ./module.nix self.packages."${system}".fudo-pricebot;
|
||||
nixosModule = builtins.callPackage ./module.nix {
|
||||
pricebot = self.packages."${system}".fudo-pricebot;
|
||||
};
|
||||
|
||||
devShell =
|
||||
pkgs.mkShell { buildInputs = with pkgs; [ clojure update-deps ]; };
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue