tangled
alpha
login
or
join now
matthew-hre.com
/
flake
0
fork
atom
My NixOS configuration (mirror)
0
fork
atom
overview
issues
pulls
pipelines
fix: g502 no longer preventing sleep
matthew-hre.com
6 months ago
424d9e1e
ce0256ae
+13
1 changed file
expand all
collapse all
unified
split
hosts
thwomp
configuration.nix
+13
hosts/thwomp/configuration.nix
···
46
46
47
47
services.xserver.enable = true;
48
48
49
49
+
services.udev.extraRules = ''
50
50
+
ACTION=="add|change", SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c547", ATTR{power/wakeup}="disabled"
51
51
+
'';
52
52
+
53
53
+
systemd.services."disable-xhc2-wakeup" = {
54
54
+
description = "disable wakeup from usb controller XHC2";
55
55
+
wantedBy = ["multi-user.target"];
56
56
+
serviceConfig = {
57
57
+
Type = "oneshot";
58
58
+
ExecStart = ''/bin/sh -c 'echo XHC2 > /proc/acpi/wakeup' '';
59
59
+
};
60
60
+
};
61
61
+
49
62
systemd.services.NetworkManager-wait-online.enable = false;
50
63
51
64
boot.kernelPatches = [