nixos/hosts/homelab/plex.nix

19 lines
333 B
Nix
Raw Normal View History

2025-03-09 20:30:33 +01:00
_: let
domain = "plex.nickolaj.com";
in {
services.nginx.virtualHosts."${domain}" = {
forceSSL = true;
enableACME = true;
http2 = true;
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://localhost:32400/";
};
};
services.plex = {
enable = true;
openFirewall = true;
};
}