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:
Atemu 2020-02-22 12:43:06 +01:00
parent c59ea8b8a0
commit e6f0a1e7eb

View file

@ -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";