nixos-config/nixos/machines/robi/media-arr.nix
Ingolf Wagner 170ae9b6be
add arr
2023-11-17 15:13:30 +01:00

38 lines
773 B
Nix

{ config, ... }:
{
services.sonarr = {
enable = true;
group = "media";
user = "media";
};
services.radarr = {
enable = true;
group = "media";
user = "media";
};
services.nginx.virtualHosts = {
"radarr.${config.networking.hostName}.private" = {
extraConfig = ''
allow ${config.tinc.private.subnet};
deny all;
'';
locations."/" = {
proxyPass = "http://localhost:7878";
proxyWebsockets = true;
};
};
"sonarr.${config.networking.hostName}.private" = {
extraConfig = ''
allow ${config.tinc.private.subnet};
deny all;
'';
locations."/" = {
proxyPass = "http://localhost:8989";
proxyWebsockets = true;
};
};
};
}