2023-10-16 13:54:31 +00:00
|
|
|
{pkgs, ...}: {
|
2023-10-09 11:13:41 +00:00
|
|
|
imports = [
|
|
|
|
../../../../common/cpu/amd
|
|
|
|
../../../../common/gpu/amd
|
|
|
|
../../../../common/pc/laptop/ssd
|
|
|
|
];
|
2023-10-09 13:42:46 +00:00
|
|
|
|
2023-10-09 17:06:50 +00:00
|
|
|
services.udev.extraRules = builtins.concatStringsSep "\n" (
|
2023-10-09 13:42:46 +00:00
|
|
|
["# Properly suspend the system."]
|
|
|
|
++ (
|
|
|
|
map
|
2023-10-11 21:39:04 +00: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 13:42:46 +00:00
|
|
|
["0xa80a" "0xa808"]
|
|
|
|
)
|
|
|
|
);
|
2023-10-09 10:53:23 +00:00
|
|
|
}
|