The port and resource directory are now specified via environment variables and a wrapper script is created by Nix that sets the resource path and so on correctly.