You can prevent any Linux system from sleeping when you close the laptop lid. Edit /etc/systemd/logind.conf, change two settings to ignore, and restart the login ...
This model controls who may open, modify, or run a file. It's simple, foundational, and still matters for protecting data and programs. This is the core of Linux file and directory permissions. Now ...