Max: Add udev rules for better sleep.

This commit is contained in:
Dmitry Voronin 2024-12-11 11:17:35 +03:00
parent 132e4122cd
commit bc582fa0b3
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,10 @@
{
util,
...
}: {
# REF: https://github.com/Sabrina-Fox/WM2-Help#known-wm2-2023-specific-issues-linux
services.udev.extraRules = util.trimTabs ''
SUBSYSTEM=="i2c", KERNEL=="i2c-PNP0C50:00", ATTR{power/wakeup}="disabled"
SUBSYSTEM=="i2c", KERNEL=="i2c-GXTP7385:00", ATTR{power/wakeup}="disabled"
'';
}

View file

@ -1,3 +1,4 @@
# SEE: https://github.com/Sabrina-Fox/WM2-Help
{ ... }: { { ... }: {
home.nixos.enable = true; home.nixos.enable = true;
user = { user = {