<human>: Can you provide a brief overview of the text?

So I've been lurking on /r/loseit, /r/leangains, and even /r/gainit for a while. My current goal is to get down to about 10% body fat and then begin to slow bulk. Currently I'm about 180 lbs and though I'm not sure what my current body fat percentage is my weight loss goal is to get down to 160. If I had to guess I'd say my body fat percentage is somewhere between 14-20%.  
  
Sorry for the preface, I'll get right to the point. From what I understand, to maintain as much muscle as possible while on a cut it's important to eat 1g of protein per pound of your goal body weight minimum. This helps to reduce muscle loss while cutting. A simple formula I found that I really like is to eat < 10 * current body weight a day to lose weight. Obviously this is simplifying what can be a complicated formula based on your activity level and other factors, but when double checked against the calculator in the FAQ this number hits a middle ground between the weight loss number and the more rapid weight loss number so I'm going to give it a try.  
  
Using this simple formula, 10 * 180lbs = 1800 cals a day. To maintain as much muscle as possible I'm going to be eating at least 160g of protein a day maybe 170g just for satiety and because meat is delicious. SO, if a single gram of protein has 4 calories that means out of my 1800 cals/day 640-680 of them are coming from protein. My question is does it make a huge difference where the other calories come from?  
  
I realize that getting those calories from nutrient rich foods like vegetables is ideal, but hypothetically speaking, once I hit my protein requirements for the day would I still lose weight if the remainder of my calories came from nothing but ice cream? (As long as I stayed under 1800.) Please don't take this example too seriously, it's an intentionally extreme scenario. I'm just wondering if a certain split between carbs and fat is more ideal for weight loss.
<bot>: 1g of protein per pound of body weight, **check.** So ideally where should the rest of my calories come from? Does it matter?