nixos-config/systems/LoutreOS/medias.nix

77 lines
1.8 KiB
Nix
Raw Normal View History

2022-07-04 23:38:41 +02:00
{ config, lib, pkgs, inputs, ... }:
2019-11-01 15:24:50 +01:00
{
services = {
transmission = {
enable = true;
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
};
};
radarr.enable = true;
sonarr.enable = true;
2022-10-14 14:54:48 +02:00
jackett = {
enable = true;
package = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.jackett;
};
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
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 = [
2022-03-07 08:48:46 +01:00
"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"
2021-10-11 10:48:26 +02:00
];
extraOptions = ["--pull=always"];
};
};
};
2019-11-01 15:24:50 +01:00
}