Sample Header Ad - 728x90

How to disable suspend on close laptop lid on NixOS?

15 votes
2 answers
7925 views
I'm using [NixOS](http://nixos.org) , so the approach described in “https://unix.stackexchange.com/q/52643/11397” , 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 /nix/store. AFAIK, you shouldn't edit the *Nix store* directly. But the file in /nix/store doesn't have write permissions anyway. How do I disable laptop auto-suspension in a NixOS idiomatic way?
Asked by Mirzhan Irkegulov (8818 rep)
Jan 25, 2016, 06:43 PM
Last activity: Aug 11, 2025, 06:11 PM