(how/where) can I configure logind.conf on server

I have a laptop that I use to test RancherOS (installed to disk)

On (other) linux versions I turn off the lid switch by setting HandleLidSwitch=ignore in /etc/systemd/logind.conf

Naively I did this in a debian console, but obviously it doesn’t do anything.

My question:
Is RancherOS server sufficiently compatible and should I do this in System Docker, or is this something that is never going to work?

For future reference: https://github.com/rancher/os/issues/1388

Instead of overwriting the suspend script I just commented out the action trigger inside the lid event (/etc/acpi/events/lid inside the acpid service/system-container)