summary refs log tree commit diff
path: root/nixos/modules/services/hardware/undervolt.nix
diff options
context:
space:
mode:
authorlinj <linj.dev@outlook.com>2022-01-25 15:44:43 +0800
committerlinj <linj.dev@outlook.com>2022-02-11 03:57:02 +0800
commitc9013da695562b5cef6be32ab3dbe6e4fc0ad348 (patch)
tree57ec396d121efc9f581e6c0f6bb5bc0a568c2e49 /nixos/modules/services/hardware/undervolt.nix
parent98bb5b77c8c6666824a4c13d23befa1e07210ef1 (diff)
nixos/undervolt: respect services.undervolt.package
This patch also removes useless systemd.services.undervolt.path.

Fixes #156668
Diffstat (limited to 'nixos/modules/services/hardware/undervolt.nix')
-rw-r--r--nixos/modules/services/hardware/undervolt.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/services/hardware/undervolt.nix b/nixos/modules/services/hardware/undervolt.nix
index 212c0227c0d0a..a743bbf21c8c2 100644
--- a/nixos/modules/services/hardware/undervolt.nix
+++ b/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}";
       };
     };