mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
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:
1 parent
e6deb4b564
commit
65f1c8e306
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user