The nexuslua function env returns the value of the given environment variable. If the variable is not set, it returns the empty string.
print(env("USERNAME")) -- stefan