diff --git a/.vscode/settings.json b/.vscode/settings.json index 24d082b..7d946fe 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,6 +3,7 @@ "aboutwelcome", "acltype", "addstr", + "advplyr", "ahci", "aioesphomeapi", "alsa", @@ -11,6 +12,8 @@ "asrouter", "attroff", "attron", + "audiobooks", + "audiobookshelf", "auditd", "autofetch", "autopull", diff --git a/systems/jeeves/docker/web.nix b/systems/jeeves/docker/web.nix index 154c14c..9b34fb1 100644 --- a/systems/jeeves/docker/web.nix +++ b/systems/jeeves/docker/web.nix @@ -3,6 +3,20 @@ let in { virtualisation.oci-containers.containers = { + audiobookshelf = { + image = "ghcr.io/advplyr/audiobookshelf:latest"; + ports = [ "13378:80" ]; + volumes = [ + "${vars.media_docker_configs}/audiobookshelf:/config" + "${vars.media_docker_configs}/audiobookshelf:/metadata" + "${vars.storage_library}/audiobooks:/audiobooks" + "${vars.storage_library}/books:/books" + ]; + environment = { + TZ = "America/New_York"; + }; + autoStart = true; + }; grafana = { image = "grafana/grafana-enterprise:latest"; volumes = [ "${vars.media_docker_configs}/grafana:/var/lib/grafana" ]; diff --git a/systems/jeeves/scripts/datasets.sh b/systems/jeeves/scripts/datasets.sh index 75f97c8..e018472 100644 --- a/systems/jeeves/scripts/datasets.sh +++ b/systems/jeeves/scripts/datasets.sh @@ -17,6 +17,7 @@ sudo zpool add torrenting -o ashift=12 special # media datasets sudo zfs create -o compression=zstd-9 media/docker +sudo zfs create -o recordsize=1M -o compression=zstd-19 media/library sudo zfs create -o exec=off media/minio sudo zfs create -o exec=off media/mirror sudo zfs create -o copies=3 media/notes diff --git a/systems/jeeves/vars.nix b/systems/jeeves/vars.nix index a9fe2c5..8acff18 100644 --- a/systems/jeeves/vars.nix +++ b/systems/jeeves/vars.nix @@ -18,6 +18,7 @@ in storage_plex = "${zfs_storage}/plex"; storage_secrets = "${zfs_storage}/secrets"; storage_syncthing = "${zfs_storage}/syncthing"; + storage_library = "${zfs_storage}/library"; # torrenting torrenting_qbit = "${zfs_torrenting}/qbit"; torrenting_qbitvpn = "${zfs_torrenting}/qbitvpn";