devices.pc: change wifi card

This commit is contained in:
陈浩南 2024-06-26 14:53:27 +08:00
parent 6fc897d5b2
commit 3767de3c2a

View File

@ -55,7 +55,13 @@ inputs:
};
nixpkgs =
{ march = "znver4"; cuda = { enable = true; capabilities = [ "8.9" ]; forwardCompat = false; }; };
kernel = { variant = "cachyos"; patches = [ "cjktty" "hibernate-progress" ]; };
kernel =
{
variant = "cachyos";
patches = [ "cjktty" "hibernate-progress" ];
modules.modprobeConfig =
[ "options iwlwifi power_save=0" "options iwlmvm power_scheme=1" "options iwlwifi uapsd_disable=1" ];
};
networking.hostname = "pc";
sysctl.laptop-mode = 5;
gui.enable = true;
@ -145,7 +151,6 @@ inputs:
boot.kernelParams =
[
"acpi_osi=!" ''acpi_osi="Windows 2015"''
"mt7921e.disable_aspm=y" # 避免休眠恢复后无 wifi似乎有时还是有问题
"amdgpu.sg_display=0" # 混合模式下避免外接屏幕闪烁,和内置外接屏幕延迟
"acpi.ec_no_wakeup" # 睡眠时避免开盖唤醒,似乎没有用
];