git init --bare dir.git
You can now add the SSH remote:
git remote add origin simone@nas:path/to/dir.git