This commit is contained in:
nicknase27
2026-07-25 23:26:39 +02:00
commit fadcad2d0b
23 changed files with 714 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
{
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"];
};
};
}