Since I often use my laptop as a desktop PC, I don't want it to suspend itself when I close the lid.
Gnome has the Tweak Tool, a GUI tool to change a number of settings. You can use it to ignore a closing lid, but this setting doesn't seem to be persistent. When I restart the laptop, closing the lid suspends it again.
It turns out that systemd manages this particular detail. It can be configured in /etc/systemd/logind.conf
:
$ sudo vi /etc/systemd/logind.conf