In the US you can work on your own house, including electrical and plumbing (including natural gas and propane lines, I think). For minor repairs like replacing a switch or receptacle, I don’t think a permit is required. For more substantial changes a permit is generally required and as is an inspection. Supplies for doing all kinds of residential construction work are readily available at retail establishments that normal people visit regularly.