flakes/containers/emerald/configuration.nix

24 lines
679 B
Nix
Raw Normal View History

2026-03-17 18:13:53 +11:00
{ fqdn, shareFqdn, ... }: {
system.stateVersion = "25.11";
systemd.tmpfiles.rules = [
"d /persist/navidrome 755 navidrome navidrome"
];
networking.firewall.allowedTCPPorts = [ 4533 ];
networking.firewall.allowedUDPPorts = [ 4533 ];
services.navidrome = {
enable = true;
environmentFile = "/binds/navidrome_env";
2026-03-17 18:13:53 +11:00
settings = {
Port = 4533;
Address = "[::]";
BaseUrl = "https://${fqdn}/";
ShareURL = "https://${shareFqdn}";
2026-03-17 18:57:18 +11:00
EnableSharing = true;
2026-03-17 18:13:53 +11:00
DataFolder = "/persist/navidrome";
2026-06-19 08:57:22 +10:00
MusicFolder = "/binds/music/main";
2026-03-17 18:13:53 +11:00
};
};
systemd.services.navidrome.serviceConfig.BindReadOnlyPaths = ["/binds/music"];
2026-03-17 18:13:53 +11:00
}