nixos/prometheus: Use lib.getExe for systemd exec path

This commit is contained in:
Jonathan Davies
2025-12-17 09:39:04 +00:00
parent 0d17bb6789
commit 46ce9a461e
@@ -1969,7 +1969,7 @@ in
after = [ "network.target" ];
serviceConfig = {
ExecStart =
"${cfg.package}/bin/prometheus"
"${lib.getExe cfg.package}"
+ optionalString (length cmdlineArgs != 0) (" \\\n " + concatStringsSep " \\\n " cmdlineArgs);
ExecReload = mkIf cfg.enableReload "+${reload}/bin/reload-prometheus";
User = "prometheus";