57 lines
1.3 KiB
Nix
57 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";
|
|
};
|
|
|
|
systemd.services = {
|
|
navidrome = {
|
|
after = ["mnt-media.mount"];
|
|
requires = ["mnt-media.mount"];
|
|
};
|
|
};
|
|
}
|