I’ve permanently mounted a NC folder to a Linux server by adding a line to /etc/fstab looking like this:
https://nc.mydomain.tld/remote.php/webdav/my_folder_name/ /media/my_mount davfs defaults,uid=myuser,gid=myuser,_netdev,auto 0 0
Also added a line to /etc/dav2fs/secrets:
/media/my_mount my_user my-app-password-for-my-user
Not sure if it will work with totp tho…