Files
nicksOs/modules/services/navidrome.nix
T

59 lines
1.3 KiB
Nix

{
pkgs,
lib,
config,
...
}: {
services.navidrome = {
#Settings
enable = true;
openFirewall = true;
settings = {
Address = "0.0.0.0";
Port = 4533;
DataFolder = "/var/lib/navidrome";
BaseURL = "https://nv.nicknase27.com";
# Library
MusicFolder = "/mnt/media/music";
AlbumPlayCountMode = "normalized";
AutoImportPlaylists = false;
PID.Track = "musicbrainz_trackid|albumid,discnumber,tracknumber,title";
PID.Album = "musicbrainz_albumid|albumartistid,album,albumversion,musicbrainz_acoustid";
# UI / Features
DefaultTheme = "Spotify-ish";
EnableDownloads = true;
DefaultDownloadableShare = true;
EnableInsightsCollector = false;
EnableSharing = true;
EnableStarRating = true;
DefaultUIVolume = 100;
LastFM.Enabled = true;
};
#Plugins
plugins = with pkgs.navidromePlugins; [
discord-rich-presence
];
#Environment
environmentFile = "/run/secrets/navidrome.env";
};
age.secrets.navidrome = {
file = ../../secrets/navidrome.age;
path = "/run/secrets/navidrome.env";
owner = "navidrome";
group = "navidrome";
};
systemd.services = {
navidrome = {
after = ["mnt-media.mount"];
requires = ["mnt-media.mount"];
};
};
}