added navidrome music management

This commit is contained in:
Nickiel12 2025-02-13 18:27:39 -08:00
parent 637905d768
commit ba8b97e9d0
3 changed files with 50 additions and 0 deletions

View file

@ -15,6 +15,7 @@
./modules/home-assistant.nix
./modules/msmtp.nix
./modules/mosquitto.nix
./modules/navidrome.nix
./modules/nginx.nix
./modules/nextcloud.nix
./modules/nicks_nextcould_integrations.nix

View file

@ -29,6 +29,11 @@
type = "A";
value = "100.64.0.1";
}
{
name = "navidrome.nickiel.net";
type = "A";
value = "100.64.0.1";
}
{
name = "printers.nickiel.net";
type = "A";

View file

@ -0,0 +1,44 @@
{ config, ...}:
let
in
{
services.navidrome = {
enable = true;
settings = {
Port = 4533;
Address = "127.0.0.1";
Backup.Path = "/Aurora/Navidrome/Data/Backups";
Backup.Schedule = "59 23 * * 6";
Backup.Count = 2;
MusicFolder = "/Aurora/Navidrome/Music";
DataFolder = "/Aurora/Navidrome/Data";
CacheFolder = "/Aurora/Navidrome/Cache";
ScanSchedule = "@every 24h";
TranscodingCacheSize = "150MiB";
};
user = "navidrome";
group = "navidrome";
openFirewall = false;
};
services.nginx.virtualHosts = {
"navidrome.nickiel.net" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${builtins.toString config.services.navidrome.settings.Port}";
proxyWebsockets = true;
extraConfig = ''
allow 100.64.0.0/16;
allow 127.0.0.1;
deny all;
'';
};
};
};
}