Force s2idle until suspend is fixed.

This commit is contained in:
Samuel Dionne-Riel 2020-01-16 20:16:01 -05:00
parent d47d354dea
commit 002045ab17
1 changed files with 7 additions and 0 deletions

View File

@ -54,6 +54,13 @@
pkgs.pinebookpro-firmware
];
# Until suspend is fixed, this at least prevents the user from shooting
# themselves in the foot by suspending accidentally, then forced to restart
# the system forcibly..
systemd.tmpfiles.rules = [
"w /sys/power/mem_sleep - - - - s2idle"
];
# The default powersave makes the wireless connection unusable.
networking.networkmanager.wifi.powersave = lib.mkDefault false;
}