diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-06-10 13:46:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-10 13:46:24 +0200 |
commit | 41386672b7cd6cecfa28cb2122308051c5cb5dfd (patch) | |
tree | 32ca864149ba4552bc71a5a5545641432b91adb1 /nixos | |
parent | 9b4b3c29599a7c683b75bb3f49deedee3b3c371d (diff) | |
parent | 4ace1c0faf14ec65193800bd8bea6bf6cb1b52f8 (diff) |
Merge pull request #286099 from Cynerd/mqtt2influxdb-package-fix
nixos/mqtt2influxdb: add missing package option
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/mqtt2influxdb.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/mqtt2influxdb.nix b/nixos/modules/services/misc/mqtt2influxdb.nix index a2d6a2b34a239..925139b449b8e 100644 --- a/nixos/modules/services/misc/mqtt2influxdb.nix +++ b/nixos/modules/services/misc/mqtt2influxdb.nix @@ -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"; }; }; |