feat: add udev rule for cpu power draw.

This commit is contained in:
CronyAkatsuki 2026-03-08 11:59:28 +01:00
parent effbf5286a
commit 225c81779c

View file

@ -42,6 +42,10 @@
};
};
services.udev.extraRules = ''
SUBSYSTEM=="powercap", KERNEL=="intel-rapl:0", RUN+="${pkgs.coreutils}/bin/chgrp wheel /sys/%p/energy_uj", RUN+="${pkgs.coreutils}/bin/chmod g+r /sys/%p/energy_uj"
'';
# Setup esync
security.pam.loginLimits = [
{