diff --git a/configuration/hosts/samhain/services/thermal/thermal.nix b/configuration/hosts/samhain/services/thermal/thermal.nix index d58103a3..b645e731 100644 --- a/configuration/hosts/samhain/services/thermal/thermal.nix +++ b/configuration/hosts/samhain/services/thermal/thermal.nix @@ -14,8 +14,8 @@ serviceConfig = { RemainAfterExit = "no"; Type = "simple"; - ExecStart = "/usr/bin/env bash ${./kaede-thermals.sh} start"; - ExecStop = "/usr/bin/env bash ${./kaede-thermals.sh} stop"; + ExecStart = "${pkgs.runtimeShell} ${./kaede-thermals.sh} start"; + ExecStop = "${pkgs.runtimeShell} ${./kaede-thermals.sh} stop"; User = "root"; }; }; @@ -25,8 +25,8 @@ serviceConfig = { RemainAfterExit = "yes"; Type = "oneshot"; - ExecStart = "/usr/bin/env bash ${./kaede-power.sh} start"; - ExecStop = "/usr/bin/env bash ${./kaede-power.sh} stop"; + ExecStart = "${pkgs.runtimeShell} ${./kaede-power.sh} start"; + ExecStop = "${pkgs.runtimeShell} ${./kaede-power.sh} stop"; User = "root"; }; };