undervolt: apply undervolt on boot and resume
The undervolt did not persist reboots or sleep/hibernation. With this change you should no longer have to apply the undervolt on a timer
This commit is contained in:
parent
c59ea8b8a0
commit
e6f0a1e7eb
1 changed files with 5 additions and 0 deletions
|
@ -114,6 +114,11 @@ in
|
|||
path = [ pkgs.undervolt ];
|
||||
|
||||
description = "Intel Undervolting Service";
|
||||
|
||||
# Apply undervolt on boot, nixos generation switch and resume
|
||||
wantedBy = [ "multi-user.target" "post-resume.target" ];
|
||||
after = [ "post-resume.target" ]; # Not sure why but it won't work without this
|
||||
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
Restart = "no";
|
||||
|
|
Loading…
Reference in a new issue