nixos-config/sys/machines/hopper/lab/navidrome/default.nix
xunuwu fb1fc75908 use regular address instead of unix socket for navidrome
this fixes permission issues on the unix socket
2025-05-16 14:20:56 +02:00

24 lines
577 B
Nix

{
config,
pkgs,
...
}: {
services.navidrome = {
enable = true;
package = pkgs.navidrome.overrideAttrs {
patches = [./scrobbleAlbumArtist.patch];
doCheck = false;
};
settings = {
MusicFolder = "/media/library/music";
Address = config.vpnNamespaces."wg".bridgeAddress;
EnableSharing = true;
};
};
systemd.services.navidrome.serviceConfig.EnvironmentFile = config.sops.secrets.navidrome.path;
services.restic.backups.hopper = {
paths = ["/var/lib/navidrome"];
exclude = ["/var/lib/navidrome/cache"];
};
}