mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-11 16:49:22 +08:00
devices.pc: remove harmful/useless udev rules
This commit is contained in:
@@ -112,12 +112,8 @@ inputs:
|
||||
services.colord.enable = true;
|
||||
services.udev.extraRules =
|
||||
''
|
||||
# 禁止鼠标等在睡眠时唤醒
|
||||
ACTION=="add", ATTR{power/wakeup}="disabled"
|
||||
# CPU降压
|
||||
SUBSYSTEM=="power_supply", KERNEL=="BAT0", ACTION=="*", RUN+="${inputs.pkgs.ryzenadj}/bin/ryzenadj --set-coall=0x0fff10"
|
||||
# 将读卡器标记为不可移动设备
|
||||
KERNEL=="mmcblk0", ENV{UDISKS_IGNORE}="1"
|
||||
'';
|
||||
# 解决有时蓝牙不能使用的问题
|
||||
boot.kernelParams = [ "mt7925e.disable_aspm=1" ];
|
||||
|
||||
Reference in New Issue
Block a user