mkCljBin creates an executable. Duh.
This commit is contained in:
parent
9b814937b8
commit
710ae58885
|
@ -29,7 +29,9 @@
|
||||||
|
|
||||||
defaultPackage = self.packages."${system}".fudo-pricebot;
|
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 =
|
devShell =
|
||||||
pkgs.mkShell { buildInputs = with pkgs; [ clojure update-deps ]; };
|
pkgs.mkShell { buildInputs = with pkgs; [ clojure update-deps ]; };
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
pricebot-jar:
|
{ pricebot, config, lib, pkgs, ... }:
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
|
@ -69,7 +68,7 @@ in {
|
||||||
PRICEBOT_NOTIFY_USER = opts.notify-user;
|
PRICEBOT_NOTIFY_USER = opts.notify-user;
|
||||||
};
|
};
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.jre}/bin/java -jar ${pricebot-jar}";
|
ExecStart = "${pricebot}/bin/pricebot";
|
||||||
ExecStartPre =
|
ExecStartPre =
|
||||||
"+${pkgs.coreutils-full}/bin/install --owner=%u --mode=400 -T ${cfg.mattermost-auth-token-file} %T/auth.token";
|
"+${pkgs.coreutils-full}/bin/install --owner=%u --mode=400 -T ${cfg.mattermost-auth-token-file} %T/auth.token";
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
|
|
Loading…
Reference in New Issue