Max: Add udev rules for better sleep.
This commit is contained in:
parent
132e4122cd
commit
bc582fa0b3
10
host/x86_64-linux/max/Sleep.nix
Normal file
10
host/x86_64-linux/max/Sleep.nix
Normal 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"
|
||||||
|
'';
|
||||||
|
}
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SEE: https://github.com/Sabrina-Fox/WM2-Help
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
home.nixos.enable = true;
|
home.nixos.enable = true;
|
||||||
user = {
|
user = {
|
||||||
|
|
Loading…
Reference in a new issue