nixcfg/nixosModules/homeLab/ociContainers/default.nix

73 lines
2 KiB
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
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;
2024-04-05 16:43:19 -04:00
virtualisation.oci-containers.containers = {
audiobookshelf = {
2024-04-07 22:16:33 -04:00
ports = ["0.0.0.0:13378:80"];
image = "ghcr.io/advplyr/audiobookshelf:latest";
2024-04-07 22:16:33 -04:00
environment = {TZ = "America/New_York";};
volumes = ["abs_config:/config" "abs_metadata:/metadata" "/mnt/Media:/Media"];
};
plex-server = {
2024-04-07 22:16:33 -04:00
ports = ["0.0.0.0:32400:32400"];
image = "plexinc/pms-docker:public";
2024-04-07 22:16:33 -04:00
environment = {TZ = "America/New_York";};
volumes = [
"plex_config:/config"
"plex_transcode:/transcode"
"/mnt/Media:/Media"
"/mnt/Archive:/Archive"
];
};
transmission-server = {
2024-04-07 22:16:33 -04:00
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 = {
2024-04-07 22:16:33 -04:00
ports = ["0.0.0.0:8096:8096"];
image = "jellyfin/jellyfin";
2024-04-07 22:16:33 -04:00
environment = {TZ = "America/New_York";};
volumes = [
"jellyfin_config:/config"
"jellyfin_cache:/cache"
"/mnt/Media:/Media"
"/mnt/Archive:/Archive"
];
};
2024-03-30 08:51:39 -04:00
freshrss = {
2024-04-07 22:16:33 -04:00
ports = ["0.0.0.0:8080:80"];
2024-03-30 08:51:39 -04:00
image = "freshrss/freshrss:latest";
environment = {
2024-04-05 16:43:19 -04:00
TZ = "America/New_York";
2024-03-30 08:51:39 -04:00
CRON_MIN = "1,31";
};
volumes = [
"freshrss_data:/var/www/FreshRSS/data"
"freshrss_extensions:/var/www/FreshRSS/extensions"
];
};
};
};
2024-04-05 16:43:19 -04:00
}