mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 14:31:54 -05:00
18 lines
558 B
Nix
18 lines
558 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.alyraffauf.containers.oci.audiobookshelf.enable {
|
|
virtualisation.oci-containers.containers = {
|
|
audiobookshelf = {
|
|
ports = ["0.0.0.0:${toString config.alyraffauf.containers.oci.audiobookshelf.port}:80"];
|
|
image = "ghcr.io/advplyr/audiobookshelf:latest";
|
|
environment = {TZ = "America/New_York";};
|
|
volumes = ["abs_config:/config" "abs_metadata:/metadata" "${config.alyraffauf.containers.oci.audiobookshelf.mediaDirectory}:/Media"];
|
|
};
|
|
};
|
|
};
|
|
}
|