mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #286099 from Cynerd/mqtt2influxdb-package-fix
nixos/mqtt2influxdb: add missing package option
This commit is contained in:
commit
41386672b7
@ -125,6 +125,7 @@ in {
|
||||
options = {
|
||||
services.mqtt2influxdb = {
|
||||
enable = mkEnableOption "BigClown MQTT to InfluxDB bridge.";
|
||||
package = mkPackageOption pkgs ["python3Packages" "mqtt2influxdb"] {};
|
||||
environmentFiles = mkOption {
|
||||
type = types.listOf types.path;
|
||||
default = [];
|
||||
@ -245,7 +246,7 @@ in {
|
||||
'';
|
||||
serviceConfig = {
|
||||
EnvironmentFile = cfg.environmentFiles;
|
||||
ExecStart = "${cfg.package}/bin/mqtt2influxdb -dc ${finalConfig}";
|
||||
ExecStart = "${lib.getExe cfg.package} -dc ${finalConfig}";
|
||||
RuntimeDirectory = "mqtt2influxdb";
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user