Can I Write Off a Custom PC on a 1099?

Hey everyone.

I have a 1099 for a side gig as a photographer and writer/ general media contributor. It’s a small part of my income, and I work a full time job with a standard W2 as well.

I’m looking to buy a decently powerful PC to upgrade from my 2012 macbook for photo and video editing, but I’d also use it for personal use and gaming.

I’m wondering: if I built my own PC (cheaper, more specialized to my needs) could I write that off even though I would be purchasing separate components?

Or, would it be easier to just buy a pre-built PC?