feat: add udev rule for cpu power draw.
This commit is contained in:
parent
effbf5286a
commit
225c81779c
1 changed files with 4 additions and 0 deletions
|
|
@ -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 = [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue