mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 19:29:17 -05:00
73 lines
2 KiB
Nix
73 lines
2 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {
|
|
alyraffauf.homeLab.ociContainers.enable =
|
|
lib.mkEnableOption "Enables select OCI containers.";
|
|
};
|
|
|
|
config = lib.mkIf config.alyraffauf.homeLab.ociContainers.enable {
|
|
alyraffauf.apps.podman.enable = lib.mkDefault true;
|
|
|
|
virtualisation.oci-containers.containers = {
|
|
audiobookshelf = {
|
|
ports = ["0.0.0.0:13378:80"];
|
|
image = "ghcr.io/advplyr/audiobookshelf:latest";
|
|
environment = {TZ = "America/New_York";};
|
|
volumes = ["abs_config:/config" "abs_metadata:/metadata" "/mnt/Media:/Media"];
|
|
};
|
|
plex-server = {
|
|
ports = ["0.0.0.0:32400:32400"];
|
|
image = "plexinc/pms-docker:public";
|
|
environment = {TZ = "America/New_York";};
|
|
volumes = [
|
|
"plex_config:/config"
|
|
"plex_transcode:/transcode"
|
|
"/mnt/Media:/Media"
|
|
"/mnt/Archive:/Archive"
|
|
];
|
|
};
|
|
transmission-server = {
|
|
ports = ["0.0.0.0:9091:9091" "0.0.0.0:51413:51413"];
|
|
image = "linuxserver/transmission:latest";
|
|
environment = {
|
|
PGID = "1000";
|
|
PUID = "1000";
|
|
TZ = "America/New_York";
|
|
};
|
|
volumes = [
|
|
"transmission_config:/config"
|
|
"/mnt/Media:/Media"
|
|
"/mnt/Archive:/Archive"
|
|
];
|
|
};
|
|
jellyfin = {
|
|
ports = ["0.0.0.0:8096:8096"];
|
|
image = "jellyfin/jellyfin";
|
|
environment = {TZ = "America/New_York";};
|
|
volumes = [
|
|
"jellyfin_config:/config"
|
|
"jellyfin_cache:/cache"
|
|
"/mnt/Media:/Media"
|
|
"/mnt/Archive:/Archive"
|
|
];
|
|
};
|
|
freshrss = {
|
|
ports = ["0.0.0.0:8080:80"];
|
|
image = "freshrss/freshrss:latest";
|
|
environment = {
|
|
TZ = "America/New_York";
|
|
CRON_MIN = "1,31";
|
|
};
|
|
volumes = [
|
|
"freshrss_data:/var/www/FreshRSS/data"
|
|
"freshrss_extensions:/var/www/FreshRSS/extensions"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|