Merge pull request #159025 from jian-lin/undervolt

nixos/undervolt: respect services.undervolt.package
This commit is contained in:
Mario Rodas 2022-02-12 15:07:27 -05:00 committed by GitHub
commit bdaf97830d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,8 +164,6 @@ in
environment.systemPackages = [ cfg.package ];
systemd.services.undervolt = {
path = [ pkgs.undervolt ];
description = "Intel Undervolting Service";
# Apply undervolt on boot, nixos generation switch and resume
@ -175,7 +173,7 @@ in
serviceConfig = {
Type = "oneshot";
Restart = "no";
ExecStart = "${pkgs.undervolt}/bin/undervolt ${toString cliArgs}";
ExecStart = "${cfg.package}/bin/undervolt ${toString cliArgs}";
};
};