The nexuslua function userdatadir returns the path to the user's app data folder, i. e.
print(userdatadir()) -- C:\Users\zippr\AppData\Roaming\