nixos-config/systems/LoutreOS/medias.nix

61 lines
1.3 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, pkgs-unstable, pkgs-4a3fc4cf7, ... }:
2019-11-01 15:24:50 +01:00
{
services = {
transmission = {
enable = true;
package = pkgs-4a3fc4cf7.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 = pkgs-unstable.radarr;
2023-05-18 20:23:15 +02:00
};
sonarr = {
enable = true;
package = pkgs-unstable.sonarr;
2023-05-18 20:23:15 +02:00
};
2024-10-28 22:18:03 +01:00
flaresolverr = {
enable = false;
package = pkgs-unstable.flaresolverr;
};
prowlarr = {
enable = true;
package = pkgs-unstable.prowlarr;
};
2019-11-01 15:24:50 +01:00
2020-11-29 12:51:18 +01:00
jellyfin = {
enable = true;
package = pkgs-unstable.jellyfin;
2020-11-29 12:51:18 +01:00
};
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
];
};
}