My NixOS configuration (mirror)

fix: g502 no longer preventing sleep

+13
+13
hosts/thwomp/configuration.nix
··· 46 46 47 47 services.xserver.enable = true; 48 48 49 + services.udev.extraRules = '' 50 + ACTION=="add|change", SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c547", ATTR{power/wakeup}="disabled" 51 + ''; 52 + 53 + systemd.services."disable-xhc2-wakeup" = { 54 + description = "disable wakeup from usb controller XHC2"; 55 + wantedBy = ["multi-user.target"]; 56 + serviceConfig = { 57 + Type = "oneshot"; 58 + ExecStart = ''/bin/sh -c 'echo XHC2 > /proc/acpi/wakeup' ''; 59 + }; 60 + }; 61 + 49 62 systemd.services.NetworkManager-wait-online.enable = false; 50 63 51 64 boot.kernelPatches = [