Some checks failed
CI / Build linux-lava for x86_64-linux (push) Has been cancelled
23 lines
679 B
Nix
23 lines
679 B
Nix
{ 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";
|
|
settings = {
|
|
Port = 4533;
|
|
Address = "[::]";
|
|
BaseUrl = "https://${fqdn}/";
|
|
ShareURL = "https://${shareFqdn}";
|
|
EnableSharing = true;
|
|
DataFolder = "/persist/navidrome";
|
|
MusicFolder = "/binds/music/main";
|
|
};
|
|
};
|
|
systemd.services.navidrome.serviceConfig.BindReadOnlyPaths = ["/binds/music"];
|
|
}
|