From 65f1c8e3067b2731d050d2e82507dabea5ff7989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ryan4yin=20=7C=20=E4=BA=8C=E8=8A=B1?= Date: Fri, 16 Oct 2026 00:41:59 +0800 Subject: [PATCH] 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) --- hosts/idols-aquamarine/hardware-amd-gpu.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/idols-aquamarine/hardware-amd-gpu.nix b/hosts/idols-aquamarine/hardware-amd-gpu.nix index 67b10725..4b146fa3 100644 --- a/hosts/idols-aquamarine/hardware-amd-gpu.nix +++ b/hosts/idols-aquamarine/hardware-amd-gpu.nix @@ -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