nixos/navidrome: use lib.getExe
This commit is contained in:
parent
4987663e27
commit
da8cdc2782
1 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ in
|
||||||
|
|
||||||
config =
|
config =
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf optional;
|
inherit (lib) mkIf optional getExe;
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
systemd.services.navidrome = {
|
systemd.services.navidrome = {
|
||||||
|
@ -68,7 +68,7 @@ in
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = ''
|
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;
|
User = cfg.user;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
|
|
Loading…
Reference in a new issue