2023-10-16 09:54:31 -04:00
|
|
|
{pkgs, ...}: {
|
2023-10-09 07:13:41 -04:00
|
|
|
imports = [
|
|
|
|
../../../../common/cpu/amd
|
|
|
|
../../../../common/gpu/amd
|
|
|
|
../../../../common/pc/laptop/ssd
|
|
|
|
];
|
2023-10-09 09:42:46 -04:00
|
|
|
|
2023-10-09 13:06:50 -04:00
|
|
|
services.udev.extraRules = builtins.concatStringsSep "\n" (
|
2023-10-09 09:42:46 -04:00
|
|
|
["# Properly suspend the system."]
|
|
|
|
++ (
|
|
|
|
map
|
2023-10-11 17:39:04 -04:00
|
|
|
(device: ''SUBSYSTEM=="pci", ACTION=="add", ATTR{vendor}=="0x144d", ATTR{device}=="${device}", RUN+="${pkgs.runtimeShell} -c 'echo 0 > /sys/bus/pci/devices/$kernel/d3cold_allowed'"'')
|
2023-10-09 09:42:46 -04:00
|
|
|
["0xa80a" "0xa808"]
|
|
|
|
)
|
|
|
|
);
|
2023-10-09 06:53:23 -04:00
|
|
|
}
|