init
This commit is contained in:
@@ -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"];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user