fix(aquamarine): load the power-cap unit's PATH at the service level (#459)

systemd ignores `path` inside [Service], so the unit ran with the default PATH
instead of the coreutils one it asks for.

Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-16 00:41:59 +08:00
1 parent e6deb4b564
commit 65f1c8e306
1 file changed
+1 -1
+1 -1
View File
@@ -78,10 +78,10 @@
description = "Cap the power limit of every amdgpu card at 250 W";
wantedBy = [ "multi-user.target" ];
after = [ "systemd-modules-load.service" ];
path = [ pkgs.coreutils ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
path = [ pkgs.coreutils ];
ExecStart = pkgs.writeShellScript "amdgpu-power-cap" ''
cap=250000000 # microwatts
want=2 # both R9700s; this host has no other amdgpu device