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

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;