-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaudiobookshelf.nix
More file actions
29 lines (27 loc) · 711 Bytes
/
Copy pathaudiobookshelf.nix
File metadata and controls
29 lines (27 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
_:
let
volume_base = "/var/lib/audiobookshelf";
http_port = "13378";
in
{
# Audiobookshelf
virtualisation.oci-containers.containers = {
"audiobookshelf" = {
autoStart = true;
image = "ghcr.io/advplyr/audiobookshelf:2.33.1";
environment = {
AUDIOBOOKSHELF_UID = "99";
AUDIOBOOKSHELF_GID = "100";
};
ports = [ "${http_port}:80" ];
volumes = [
"${volume_base}/audiobooks:/audiobooks"
"${volume_base}/podcasts:/podcasts"
"${volume_base}/printbooks:/printbooks"
"${volume_base}/config:/config"
"${volume_base}/metadata:/metadata"
];
};
};
services.restic.backups.daily.paths = [ volume_base ];
}