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-11 18:37:33 -04:00
|
|
|
./reverse_proxy
|
2024-03-06 23:49:20 -05:00
|
|
|
];
|
|
|
|
|
2024-03-10 23:48:07 -04:00
|
|
|
# services.ddclient.enable = true;
|
|
|
|
# services.ddclient.configFile = "/etc/ddclient/ddclient.conf";
|
|
|
|
|
2024-03-11 18:37:33 -04:00
|
|
|
# Open TCP ports for transmission-server.
|
|
|
|
networking.firewall.allowedTCPPorts = [ 51413 9091 ];
|
2024-03-06 22:28:48 -05:00
|
|
|
networking.firewall.allowedUDPPorts = [ 51413 ];
|
|
|
|
|
2024-03-11 18:37:33 -04:00
|
|
|
|
|
|
|
virtualisation.oci-containers.containers = {
|
|
|
|
audiobookshelf = {
|
|
|
|
ports = ["0.0.0.0:13378:80"];
|
|
|
|
image = "ghcr.io/advplyr/audiobookshelf:latest";
|
|
|
|
environment = {
|
|
|
|
TZ = "America/New_York";
|
2024-03-05 15:19:01 -05:00
|
|
|
};
|
2024-03-11 18:37:33 -04:00
|
|
|
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";
|
2024-03-05 15:19:01 -05:00
|
|
|
};
|
2024-03-11 18:37:33 -04:00
|
|
|
volumes = [
|
|
|
|
"plex_config:/config"
|
|
|
|
"plex_transcode:/transcode"
|
|
|
|
"/mnt/Media:/Media"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
transmission-server = {
|
|
|
|
ports = ["0.0.0.0:9091:9091" "0.0.0.0:51413:51413"];
|
|
|
|
image = "linuxserver/transmission:latest";
|
|
|
|
environment = {
|
|
|
|
TZ = "America/New_York";
|
|
|
|
};
|
|
|
|
volumes = [
|
|
|
|
"transmission_config:/config"
|
|
|
|
"/mnt/Media/Torrents:/watch"
|
|
|
|
"/mnt/Media:/Media"
|
|
|
|
];
|
2024-03-10 23:48:07 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
containers.navidrome = {
|
|
|
|
autoStart = true;
|
2024-03-11 18:37:33 -04:00
|
|
|
bindMounts."/Music".hostPath = "/mnt/Media/Music";
|
2024-03-10 23:48:07 -04:00
|
|
|
};
|
|
|
|
config = { config, pkgs, lib, ... }: {
|
|
|
|
services.navidrome = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
settings = {
|
|
|
|
Address = "0.0.0.0";
|
|
|
|
Port = 4533;
|
|
|
|
MusicFolder = "/Music";
|
|
|
|
DefaultTheme = "Auto";
|
|
|
|
SubsonicArtistParticipations = true;
|
2024-03-11 18:38:31 -04:00
|
|
|
UIWelcomeMessage = "Welcome to Navidrome on Raffauf Labs.";
|
2024-03-10 23:48:07 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
};
|
|
|
|
};
|
2024-03-05 11:47:33 -05:00
|
|
|
}
|