nixos/undervolt: respect services.undervolt.package

This patch also removes useless systemd.services.undervolt.path.

Fixes #156668
main
linj 2 years ago
parent 98bb5b77c8
commit c9013da695
  1. 4
      nixos/modules/services/hardware/undervolt.nix

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

Loading…
Cancel
Save