You can follow this example below.
nest g service [path] example: nest g service modules/users
Output: [rootFolder]/modules/users/users.service.ts