2022-07-04 23:38:41 +02:00
|
|
|
{ config, lib, pkgs, inputs, ... }:
|
2019-11-01 15:24:50 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
services = {
|
|
|
|
transmission = {
|
|
|
|
enable = true;
|
2023-10-10 22:17:25 +02:00
|
|
|
package = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.transmission_4;
|
2019-11-01 15:24:50 +01:00
|
|
|
home = "/var/lib/transmission";
|
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";
|
2021-12-16 19:07:30 +01:00
|
|
|
rpc-port = 9091;
|
2019-11-01 15:24:50 +01:00
|
|
|
rpc-host-whitelist = "*";
|
|
|
|
rpc-whitelist-enabled = false;
|
|
|
|
peer-port = 51413;
|
2020-08-30 21:11:15 +02:00
|
|
|
incomplete-dir = "/mnt/medias/incomplete";
|
2022-07-26 21:27:31 +02:00
|
|
|
download-dir = "/mnt/medias/torrent";
|
2019-11-01 15:24:50 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-05-18 20:23:15 +02:00
|
|
|
radarr = {
|
|
|
|
enable = true;
|
|
|
|
package = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.radarr;
|
|
|
|
};
|
|
|
|
sonarr = {
|
|
|
|
enable = true;
|
|
|
|
package = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.sonarr;
|
|
|
|
};
|
2023-05-18 22:41:11 +02:00
|
|
|
prowlarr.enable = true;
|
2019-11-01 15:24:50 +01:00
|
|
|
|
2020-11-29 12:51:18 +01:00
|
|
|
jellyfin = {
|
|
|
|
enable = true;
|
2022-07-04 23:38:41 +02:00
|
|
|
package = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.jellyfin;
|
2020-11-29 12:51:18 +01:00
|
|
|
};
|
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
|
|
|
|
2023-10-10 22:18:02 +02:00
|
|
|
virtualisation = {
|
|
|
|
podman.autoPrune.enable = true;
|
|
|
|
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 = [
|
|
|
|
"10.30.0.1:9000:9000/tcp"
|
|
|
|
"10.30.0.1:9090:9090/tcp"
|
|
|
|
"10.30.0.1:3483:3483/tcp"
|
|
|
|
"10.30.0.1:3483:3483/udp"
|
|
|
|
];
|
|
|
|
extraOptions = ["--pull=always"];
|
|
|
|
};
|
2021-10-11 10:48:26 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2019-11-01 15:24:50 +01:00
|
|
|
}
|