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 = {