nix-conf/modules/servers/per-server/bragi/services/audiobookshelf.nix
Crony Akatsuki d321a52fe6
Some checks failed
/ cache (push) Failing after 5s
feat: require mount.
2026-04-12 12:03:51 +02:00

33 lines
705 B
Nix

{...}: {
services.audiobookshelf = {
enable = true;
};
systemd.services.audiobookshelf = {
after = ["mnt.mount"];
bindsTo = ["mnt.mount"];
requires = ["mnt.mount"];
};
services.traefik.dynamicConfigOptions.http = {
services.audiobookshelf.loadBalancer.servers = [
{
url = "http://localhost:8000";
}
];
routers.audiobookshelf = {
rule = "Host(`abs.cronyakatsuki.xyz`)";
tls = {
certResolver = "porkbun";
};
service = "audiobookshelf";
entrypoints = "websecure";
};
};
services.restic.backups = {
local.paths = ["/var/lib/audiobookshelf"];
server.paths = ["/var/lib/audiobookshelf"];
};
}