nixos-config/systems/LoutreOS/medias.nix

73 lines
1.5 KiB
Nix
Raw Normal View History

2019-11-01 15:24:50 +01:00
{ config, lib, pkgs, ... }:
{
services = {
transmission = {
enable = true;
home = "/var/lib/transmission";
2020-11-29 12:51:18 +01:00
port = 9091;
2021-10-11 11:00:09 +02:00
group = "medias";
2019-11-01 15:24:50 +01:00
settings = {
rpc-bind-address = "127.0.0.1";
rpc-host-whitelist = "*";
rpc-whitelist-enabled = false;
peer-port = 51413;
2020-08-30 21:11:15 +02:00
incomplete-dir = "/mnt/medias/incomplete";
2019-11-01 15:24:50 +01:00
};
};
radarr.enable = true;
sonarr.enable = true;
jackett.enable = true;
2020-11-29 12:51:18 +01:00
jellyfin = {
enable = true;
package = pkgs.jellyfin;
};
2019-11-01 15:24:50 +01:00
2021-01-06 02:07:56 +01:00
navidrome = {
2019-11-01 15:24:50 +01:00
enable = true;
2021-01-06 02:07:56 +01:00
settings = {
MusicFolder = "/mnt/medias/musique";
ImageCacheSize = 0;
};
2019-11-01 15:24:50 +01:00
};
};
2021-10-11 11:00:09 +02:00
systemd.services.transmission.serviceConfig = {
BindPaths = [ "/mnt/medias" ];
LimitNOFILE = 1048576;
};
2020-11-29 12:51:18 +01:00
2019-11-01 15:24:50 +01:00
networking = {
firewall.allowedTCPPorts = [
config.services.transmission.settings.peer-port
];
firewall.allowedUDPPorts = [
config.services.transmission.settings.peer-port
];
};
2021-10-11 10:48:26 +02:00
virtualisation.oci-containers = {
backend = "podman";
containers = {
slimserver = {
image = "docker.io/lmscommunity/logitechmediaserver:stable";
volumes = [
"/mnt/medias/musique:/music:ro"
"/var/lib/slimserver:/config:rw"
"/etc/localtime:/etc/localtime:ro"
];
ports = [
"9000:9000/tcp"
"9090:9090/tcp"
"3483:3483/tcp"
"3483:3483/udp"
];
extraOptions = ["--pull=always"];
};
};
};
2019-11-01 15:24:50 +01:00
}