Skip to content

Commit

Permalink
refactor(tuxedo/pulse/15/gen2): simplify device expression
Browse files Browse the repository at this point in the history
This reverts commit 7b569a2.
  • Loading branch information
trueNAHO committed Oct 11, 2023
1 parent 7b569a2 commit dde7ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tuxedo/pulse/15/gen2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
["# Properly suspend the system."]
++ (
map
(device: "SUBSYSTEM==\"pci\", ACTION==\"add\", ATTR{vendor}==\"0x144d\", ATTR{device}==\"${device}\", RUN+=\"${pkgs.bash}/bin/sh -c '${pkgs.coreutils}/bin/echo 0 | ${pkgs.coreutils}/bin/tee /sys/bus/pci/devices/$kernel/d3cold_allowed'\"")
(device: ''SUBSYSTEM=="pci", ACTION=="add", ATTR{vendor}=="0x144d", ATTR{device}=="${device}", RUN+="${pkgs.runtimeShell} -c 'echo 0 > /sys/bus/pci/devices/$kernel/d3cold_allowed'"'')
["0xa80a" "0xa808"]
)
);
Expand Down

0 comments on commit dde7ef8

Please sign in to comment.