How do I reference Environment Variables from NAnt?
NAnt has a sysinfo task which will inject the set of environment variables and some other system properties into the properties collection under the sys.env namespace. You can then reference them the same way as any other properties. So, for example, you would access the path with ${sys.env.path}. See the sysinfo task help for more info.