From 1c3c2c820321a411a3a71006de8c17a7255442d6 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Sun, 30 Apr 2023 22:45:55 -0300 Subject: [PATCH] nixos/navidrome: add package option --- nixos/modules/services/audio/navidrome.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/audio/navidrome.nix b/nixos/modules/services/audio/navidrome.nix index e73828081d4b..e18e61eb6d44 100644 --- a/nixos/modules/services/audio/navidrome.nix +++ b/nixos/modules/services/audio/navidrome.nix @@ -11,6 +11,8 @@ in { enable = mkEnableOption (lib.mdDoc "Navidrome music server"); + package = mkPackageOptionMD pkgs "navidrome" { }; + settings = mkOption rec { type = settingsFormat.type; apply = recursiveUpdate default; @@ -36,7 +38,7 @@ in { wantedBy = [ "multi-user.target" ]; serviceConfig = { ExecStart = '' - ${pkgs.navidrome}/bin/navidrome --configfile ${settingsFormat.generate "navidrome.json" cfg.settings} + ${cfg.package}/bin/navidrome --configfile ${settingsFormat.generate "navidrome.json" cfg.settings} ''; DynamicUser = true; StateDirectory = "navidrome";