2 hours is sufficient - it's a short-ish walk, after you clear immigration you follow the signs to domestic transfer.
And yes, you are correct - your bag gets tagged on to your domestic flight, you don't have to pick it up in CGK, meaning you don't actually clear customs per se.