Created
June 29, 2018 02:48
-
-
Save denten/0ea103a082233b6b06a2e1eabf0f5b86 to your computer and use it in GitHub Desktop.
making low battery suspend work with nix os
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.udev.extraRules = '' | |
SUBSYSTEM=="power_supply" | |
ATTR{status}=="Discharging" | |
ATTR{capacity}=="[0-5]" | |
RUN+="/run/current-system/sw/bin/systemctl hibernate" | |
''; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment