1
0
Fork 0
dotfiles/system/nixos/sonarr.nix

38 lines
724 B
Nix
Raw Normal View History

2023-04-15 22:11:15 +00:00
{ pkgs, lib, ... }:
{
services.sonarr = {
enable = true;
user = "media_user";
group = "media_group";
openFirewall = false;
};
systemd.services.sonarr = {
bindsTo = [ "wg.service" ];
after = lib.mkForce [ "wg.service" ];
serviceConfig = {
NetworkNamespacePath = "/var/run/netns/wg";
};
};
services.nginx.virtualHosts."sonarr.internal.kempkens.network" = {
quic = true;
http3 = true;
onlySSL = true;
useACMEHost = "internal.kempkens.network";
extraConfig = ''
client_max_body_size 32m;
'';
locations."/" = {
2023-04-15 22:32:06 +00:00
recommendedProxySettings = true;
proxyPass = "http://192.168.42.2:8989";
proxyWebsockets = true;
2023-04-15 22:11:15 +00:00
};
};
}