diff --git a/packages/nginx/homeserver.nix b/packages/nginx/homeserver.nix index 1ab6038..56b91b0 100644 --- a/packages/nginx/homeserver.nix +++ b/packages/nginx/homeserver.nix @@ -1,12 +1,15 @@ { ... }: { - services.nginx.enable = true; - services.nginx.virtualHosts."192.168.2.69" = { - root = "/mnt/mass/Torrents"; - extraConfig = '' - autoindex on; - ''; + services.nginx = { + enable = true; + user = "media"; + virtualHosts."192.168.2.69" = { + root = "/mnt/mass/Torrents"; + extraConfig = '' + autoindex on; + ''; + }; }; networking.firewall.allowedTCPPorts = [ 80 ];