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
@ -114,6 +114,11 @@ in
|
|||||||
path = [ pkgs.undervolt ];
|
path = [ pkgs.undervolt ];
|
||||||
|
|
||||||
description = "Intel Undervolting Service";
|
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 = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
Restart = "no";
|
Restart = "no";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user