flakes/containers/emerald/configuration.nix
Cilly Leang 3381630a7a
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
containers/emerald: bind music media dir
2026-03-18 03:45:26 +11:00

22 lines
593 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";
};
};
}