Add Audiobookshelf

This commit is contained in:
Gene Liverman 2024-03-28 18:18:21 -04:00
parent 072a6e34de
commit 1885a9119e
2 changed files with 26 additions and 2 deletions

View file

@ -0,0 +1,23 @@
{ ... }: let
volume_base = "/orico/audiobookshelf";
in {
# Audiobookshelf
virtualisation.oci-containers.containers = {
"audiobookshelf" = {
autoStart = true;
image = "ghcr.io/advplyr/audiobookshelf:latest";
environment = {
AUDIOBOOKSHELF_UID = "99";
AUDIOBOOKSHELF_GID = "100";
};
ports = [ "13378:80" ];
volumes = [
"${volume_base}/audiobooks:/audiobooks"
"${volume_base}/podcasts:/podcasts"
"${volume_base}/printbooks:/printbooks"
"${volume_base}/config:/config"
"${volume_base}/metadata:/metadata"
];
};
};
}

View file

@ -1,6 +1,7 @@
{ inputs, config, hostname, pkgs, sops-nix, username, ... }: {
imports = [
./hardware-configuration.nix
./audiobookshelf.nix
];
system.stateVersion = "23.11";
@ -118,9 +119,9 @@
authKeyFile = config.sops.secrets.tailscale_key.path;
extraUpFlags = [
"--advertise-exit-node"
"--operator"
"${username}"
"--operator=${username}"
"--ssh"
"--advertise-routes=192.168.20.0/22"
];
useRoutingFeatures = "both";
};