2024-05-14 10:38:08 +02:00
|
|
|
{ config, lib, pkgs, nixpkgs-unstable, ... }:
|
2019-11-01 15:24:50 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
services = {
|
|
|
|
transmission = {
|
|
|
|
enable = true;
|
2024-05-14 10:38:08 +02:00
|
|
|
package = 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;
|
2024-05-14 10:38:08 +02:00
|
|
|
package = nixpkgs-unstable.legacyPackages.x86_64-linux.radarr;
|
2023-05-18 20:23:15 +02:00
|
|
|
};
|
|
|
|
sonarr = {
|
|
|
|
enable = true;
|
2024-05-14 10:38:08 +02:00
|
|
|
package = nixpkgs-unstable.legacyPackages.x86_64-linux.sonarr;
|
2023-05-18 20:23:15 +02:00
|
|
|
};
|
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;
|
2024-05-14 10:38:08 +02:00
|
|
|
package = 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
|
|
|
};
|
2024-10-02 19:04:45 +02:00
|
|
|
|
|
|
|
slimserver.enable = true;
|
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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|