nixos/hosts/homelab/plex.nix
2025-04-23 00:02:00 +02:00

20 lines
374 B
Nix

_: 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;
user = "media";
group = "media";
};
}