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 ]; 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}";
}; };
}; };