mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 22:31:53 -05:00
23 lines
655 B
Nix
23 lines
655 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.ar.containers.oci.plexMediaServer.enable {
|
|
virtualisation.oci-containers.containers = {
|
|
plexMediaServer = {
|
|
ports = ["0.0.0.0:${toString config.ar.containers.oci.plexMediaServer.port}:32400"];
|
|
image = "plexinc/pms-docker:public";
|
|
environment = {TZ = "America/New_York";};
|
|
volumes = [
|
|
"plex_config:/config"
|
|
"plex_transcode:/transcode"
|
|
"${config.ar.containers.oci.plexMediaServer.mediaDirectory}:/Media"
|
|
"${config.ar.containers.oci.plexMediaServer.archiveDirectory}:/Archive"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|