Navidrome: Difference between revisions

Onny (talk | contribs)
mNo edit summary
Onny (talk | contribs)
Tips and tricks: Importing playlists
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
services.navidrome.enable = true;
services.navidrome.enable = true;
</syntaxhighlight>The service should be available add http://127.0.0.1:4533. Continue adding an admin login including setting a password.
</syntaxhighlight>The service should be available add http://127.0.0.1:4533. Continue adding an admin login including setting a password.
If you have your music library outside of the systemd unit profile path, you'll add to have it to <code>BindReadOnlypaths</code><syntaxhighlight lang="nix">
systemd.services.navidrome.serviceConfig = {
  BindReadOnlyPaths = [
    "/mnt/audio/music"
  ];
};
</syntaxhighlight>
=== Tips and tricks ===
==== Import playlists ====
Place m3u or m3u8 playlist files in a specific folder, configure it in the Navidrome service and after a library scan it should get imported. In this example the playlist files are stored in <code>/mnt/audio/playlists</code>.
<syntaxhighlight lang="nix">
services.navidrome = {
  enable = true;
  settings.PlaylistsPath = "/mnt/audio/playlists";
};
</syntaxhighlight>
==== Enable sharing ====
Single tracks, albums or playlists can be publicly shared. To enable the feature, add
<syntaxhighlight lang="nix">
services.navidrome = {
  enable = true;
  settings.EnableSharing = true;
};
</syntaxhighlight>