[Power] Fix RAPL permission udev rule

Stupid typo...
This commit is contained in:
Antoine Viallon 2024-01-02 14:55:16 +01:00
parent dcd7564cd7
commit 92b6e28cfe
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -117,7 +117,7 @@ in {
ACTION!="remove", KERNEL=="BAT*", SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", RUN+="${pkgs.systemd}/bin/systemctl start battery-power.target"
ACTION!="remove", KERNEL=="BAT*", SUBSYSTEM=="power_supply", ATTR{status}=="Charging", RUN+="${pkgs.systemd}/bin/systemctl stop battery-power.target"
ACTION!="remove", DEVPATH=="*intel-rapl:*", SUBSYSTEM=="powercap", RUN+="${pkgs.coreutils}/bin/chmod g+r '/sys%p/ernegy_uj'"
ACTION!="remove", DEVPATH=="*intel-rapl:*", SUBSYSTEM=="powercap", RUN+="${pkgs.coreutils}/bin/chmod g+r '/sys%p/energy_uj'"
'';
users.groups.power = {};