I'm using NixOS on a laptop and want to disable auto-suspension that happens every time I close the laptop lid. Approach described in “How to disable auto suspend when I close laptop lid?”, that is, editing
/etc/systemd/logind.conf won't work, as it is just a symlink to
/etc/static/systemd/logind.conf, which itself is a symlink to a file in
AFAIK, you shouldn't edit the Nix store directly, although I'm not entirely sure what would happen if I did. But the file in
/nix/store doesn't have write permissions anyway.
How do I disable auto-suspension of a laptop in a NixOS idiomatic way?