mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-14 04:51:08 +01:00
mopidy: make scan service depend on mopidy-local
This commit is contained in:
parent
15d7ec3051
commit
d939ce585c
4 changed files with 23 additions and 3 deletions
|
|
@ -48,6 +48,8 @@ let
|
|||
configFilePaths = concatStringsSep ":"
|
||||
([ "${config.xdg.configHome}/mopidy/mopidy.conf" ] ++ cfg.extraConfigFiles);
|
||||
|
||||
hasMopidyLocal = builtins.elem pkgs.mopidy-local cfg.extensionPackages;
|
||||
|
||||
in {
|
||||
meta.maintainers = [ hm.maintainers.foo-dogsquared ];
|
||||
|
||||
|
|
@ -133,7 +135,7 @@ in {
|
|||
Install.WantedBy = [ "default.target" ];
|
||||
};
|
||||
|
||||
systemd.user.services.mopidy-scan = {
|
||||
systemd.user.services.mopidy-scan = mkIf hasMopidyLocal {
|
||||
Unit = {
|
||||
Description = "mopidy local files scanner";
|
||||
Documentation = [ "https://mopidy.com/" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue