Merge pull request #159025 from jian-lin/undervolt
nixos/undervolt: respect services.undervolt.package
This commit is contained in:
commit
bdaf97830d
1 changed files with 1 additions and 3 deletions
|
@ -164,8 +164,6 @@ in
|
||||||
environment.systemPackages = [ cfg.package ];
|
environment.systemPackages = [ cfg.package ];
|
||||||
|
|
||||||
systemd.services.undervolt = {
|
systemd.services.undervolt = {
|
||||||
path = [ pkgs.undervolt ];
|
|
||||||
|
|
||||||
description = "Intel Undervolting Service";
|
description = "Intel Undervolting Service";
|
||||||
|
|
||||||
# Apply undervolt on boot, nixos generation switch and resume
|
# Apply undervolt on boot, nixos generation switch and resume
|
||||||
|
@ -175,7 +173,7 @@ in
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
Restart = "no";
|
Restart = "no";
|
||||||
ExecStart = "${pkgs.undervolt}/bin/undervolt ${toString cliArgs}";
|
ExecStart = "${cfg.package}/bin/undervolt ${toString cliArgs}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue