mkCljBin creates an executable. Duh.

This commit is contained in:
niten 2022-06-19 12:11:44 -07:00
parent 9b814937b8
commit 710ae58885
2 changed files with 5 additions and 4 deletions

View File

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

View File

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