You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
809 B
32 lines
809 B
{ lib, config, ... }: {
|
|
services = {
|
|
navidrome = {
|
|
enable = true;
|
|
settings = {
|
|
Address = "0.0.0.0";
|
|
Port = 4533;
|
|
MusicFolder = "/media/music";
|
|
CovertArtPriority = "*.jpg, *.JPG, *.png, *.PNG, embedded";
|
|
AutoImportPlaylists = false;
|
|
};
|
|
};
|
|
|
|
nginx.virtualHosts = {
|
|
"music.m7.rs" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/".proxyPass =
|
|
"http://localhost:${toString config.services.navidrome.settings.Port}";
|
|
};
|
|
"music.misterio.me" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/".return = "302 https://music.m7.rs$request_uri";
|
|
};
|
|
};
|
|
};
|
|
|
|
environment.persistence = {
|
|
"/persist".directories = [ "/var/lib/private/navidrome" ];
|
|
};
|
|
}
|
|
|