2024-03-05 15:19:01 -05:00
|
|
|
{ config, pkgs, ... }:
|
2024-03-06 23:49:20 -05:00
|
|
|
|
2024-03-05 11:47:33 -05:00
|
|
|
{
|
2024-03-06 23:49:20 -05:00
|
|
|
imports = [
|
|
|
|
../virtualization
|
|
|
|
];
|
|
|
|
|
2024-03-05 15:19:01 -05:00
|
|
|
# Open TCP ports for audiobookshelf, plex-server, and transmission-server.
|
2024-03-06 22:28:48 -05:00
|
|
|
networking.firewall.allowedTCPPorts = [ 51413 13378 32400 9091 ];
|
|
|
|
networking.firewall.allowedUDPPorts = [ 51413 ];
|
|
|
|
|
2024-03-05 15:19:01 -05:00
|
|
|
virtualisation = {
|
|
|
|
oci-containers.containers = {
|
|
|
|
audiobookshelf = {
|
|
|
|
ports = ["0.0.0.0:13378:80"];
|
|
|
|
image = "ghcr.io/advplyr/audiobookshelf:latest";
|
2024-03-07 03:18:57 -05:00
|
|
|
environment = {
|
|
|
|
TZ = "America/New_York";
|
|
|
|
};
|
2024-03-06 22:14:16 -05:00
|
|
|
volumes = [
|
2024-03-07 01:55:47 -05:00
|
|
|
"abs_config:/config"
|
|
|
|
"abs_metadata:/metadata"
|
2024-03-06 22:14:16 -05:00
|
|
|
"/mnt/Media:/Media"
|
|
|
|
];
|
2024-03-05 15:19:01 -05:00
|
|
|
};
|
|
|
|
plex-server = {
|
|
|
|
ports = ["0.0.0.0:32400:32400"];
|
|
|
|
image = "plexinc/pms-docker:public";
|
2024-03-07 03:18:57 -05:00
|
|
|
environment = {
|
|
|
|
TZ = "America/New_York";
|
|
|
|
};
|
2024-03-06 22:14:16 -05:00
|
|
|
volumes = [
|
2024-03-07 01:55:47 -05:00
|
|
|
"plex_config:/config"
|
|
|
|
"plex_transcode:/transcode"
|
2024-03-06 22:14:16 -05:00
|
|
|
"/mnt/Media:/Media"
|
|
|
|
];
|
2024-03-05 15:19:01 -05:00
|
|
|
};
|
|
|
|
transmission-server = {
|
2024-03-06 22:28:48 -05:00
|
|
|
ports = ["0.0.0.0:9091:9091" "0.0.0.0:51413:51413"];
|
2024-03-05 15:19:01 -05:00
|
|
|
image = "linuxserver/transmission:latest";
|
2024-03-07 03:18:57 -05:00
|
|
|
environment = {
|
|
|
|
TZ = "America/New_York";
|
|
|
|
};
|
2024-03-06 22:14:16 -05:00
|
|
|
volumes = [
|
2024-03-07 01:55:47 -05:00
|
|
|
"transmission_config:/config"
|
2024-03-07 03:04:26 -05:00
|
|
|
"/mnt/Media/Torrents:/watch"
|
2024-03-06 22:14:16 -05:00
|
|
|
"/mnt/Media:/Media"
|
|
|
|
];
|
2024-03-05 15:19:01 -05:00
|
|
|
};
|
2024-03-09 12:23:30 -05:00
|
|
|
# nextcloud = {
|
|
|
|
# ports = ["0.0.0.0:80:80" ];
|
|
|
|
# image = "nextcloud:latest";
|
|
|
|
# environment = {
|
|
|
|
# TZ = "America/New_York";
|
|
|
|
# };
|
|
|
|
# volumes = [
|
|
|
|
# "nextcloud:/var/www/html"
|
|
|
|
# "/mnt/Media/NextCloud:/var/www/html/data"
|
|
|
|
# ];
|
|
|
|
# };
|
2024-03-05 15:19:01 -05:00
|
|
|
};
|
|
|
|
};
|
2024-03-05 11:47:33 -05:00
|
|
|
}
|