From bc582fa0b3d9d8aa1db9fc21674e9a96dca5a2d4 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Wed, 11 Dec 2024 11:17:35 +0300 Subject: [PATCH] Max: Add udev rules for better sleep. --- host/x86_64-linux/max/Sleep.nix | 10 ++++++++++ host/x86_64-linux/max/default.nix | 1 + 2 files changed, 11 insertions(+) create mode 100644 host/x86_64-linux/max/Sleep.nix diff --git a/host/x86_64-linux/max/Sleep.nix b/host/x86_64-linux/max/Sleep.nix new file mode 100644 index 0000000..5e47a89 --- /dev/null +++ b/host/x86_64-linux/max/Sleep.nix @@ -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" + ''; +} diff --git a/host/x86_64-linux/max/default.nix b/host/x86_64-linux/max/default.nix index 9680ec8..06936ad 100644 --- a/host/x86_64-linux/max/default.nix +++ b/host/x86_64-linux/max/default.nix @@ -1,3 +1,4 @@ +# SEE: https://github.com/Sabrina-Fox/WM2-Help { ... }: { home.nixos.enable = true; user = {