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