about summary refs log tree commit diff
path: root/nixos/alpha
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-08-05 23:42:58 +0900
committersefidel <contact@sefidel.net>2023-08-05 23:42:58 +0900
commit1bf9bc0f981d7bc81559e0096de77c72766e41eb (patch)
tree4d625cf7bc45f3e084565733b1099be46eb3e3a6 /nixos/alpha
parent29acaa9825af4cdbfece2aaf8be75efb14058bff (diff)
downloadnixrc-1bf9bc0f981d7bc81559e0096de77c72766e41eb.tar.gz
nixrc-1bf9bc0f981d7bc81559e0096de77c72766e41eb.zip
fix(nixos/alpha): fix premature wakeup caused by logitech receiver
Diffstat (limited to 'nixos/alpha')
-rw-r--r--nixos/alpha/configuration.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index 5b0eaf4..9df7566 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -152,6 +152,11 @@
   hardware.bluetooth.enable = true;
   hardware.logitech.wireless.enable = true;
 
+  services.udev.extraRules = ''
+    # Logitech receiver for superlight, causes premature wakeup from suspend
+    ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c547", ATTR{power/wakeup}="disabled"
+  '';
+
   services.printing.enable = true;
   services.printing.drivers = [ pkgs.gutenprint pkgs.samsung-unified-linux-driver pkgs.brgenml1lpr pkgs.brgenml1cupswrapper ];