How do I regain all unallocated disk space to add it to macOS after removing Linux partitions?
Your disk contains some blocking Linux swap partitions: disk1s3, disk1s4 and disk0s4 (all partitions with the type 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F). Additionally your probable Recovery HD disk0s3 has the wrong type: it should be 426F6F74-0000-11AA-AA11-00306543ECAC.

Depending on your Mac model either use Internet Recovery Mode or a bootable OS X installer thumb drive to "repair" your disks.



Since your user folder resides on a different partition create a safety net admin user first on your boot disk. Log-in as second admin user to be sure that the account works independently from your main admin user.




Boot to Internet Recovery Mode (or the thumb drive)
Open Terminal in the menubar > Utilities
Enter diskutil list to get an overview.
Use the disk identifiers of your SSD and the HDD (e.g disk0 and disk1) enter gpt -r show disk$.

Below I assume disk0 is your system disk and disk1 is your HOME disk.
Unmount both disks with diskutil umountDisk disk0and  diskutil umountDisk disk1.
remove the two swap partitions on disk1:

gpt remove -i 3 disk1
diskutil umountDisk disk1
gpt remove -i 4 disk1

remove the Recovery HD and the swap partitions on disk1:

gpt remove -i 3 disk0
diskutil umountDisk disk0
gpt remove -i 4 disk0
diskutil umountDisk disk0

re-add the Recovery HD with the proper type:

gpt add -i 3 -b 500312408 -s 1269536 -t 426F6F74-0000-11AA-AA11-00306543ECAC disk0

resize both main volumes with:

diskutil resizeVolume /dev/disk0s2 100%
diskutil resizeVolume /dev/disk1s2 100%

Verify both volumes with diskutil verifyVolume disk0s2 and  diskutil verifyVolume disk1s2. If necessary repair the volumes.
Reboot