From da8cdc2782adf9cc519575717b74cc37ae833342 Mon Sep 17 00:00:00 2001 From: nu-nu-ko <153512689+nu-nu-ko@users.noreply.github.com> Date: Fri, 1 Mar 2024 12:29:57 +1300 Subject: [PATCH] nixos/navidrome: use lib.getExe --- nixos/modules/services/audio/navidrome.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/audio/navidrome.nix b/nixos/modules/services/audio/navidrome.nix index 595c86908a48..547ef7885113 100644 --- a/nixos/modules/services/audio/navidrome.nix +++ b/nixos/modules/services/audio/navidrome.nix @@ -59,7 +59,7 @@ in config = let - inherit (lib) mkIf optional; + inherit (lib) mkIf optional getExe; in mkIf cfg.enable { systemd.services.navidrome = { @@ -68,7 +68,7 @@ in wantedBy = [ "multi-user.target" ]; serviceConfig = { ExecStart = '' - ${cfg.package}/bin/navidrome --configfile ${settingsFormat.generate "navidrome.json" cfg.settings} + ${getExe cfg.package} --configfile ${settingsFormat.generate "navidrome.json" cfg.settings} ''; User = cfg.user; Group = cfg.group;