diff --git a/modules/services/monitoring/smartd.nix b/modules/services/monitoring/smartd.nix index a4c24c794d6..2427f29020e 100644 --- a/modules/services/monitoring/smartd.nix +++ b/modules/services/monitoring/smartd.nix @@ -77,7 +77,9 @@ in startOn = "started syslogd"; - exec = "${pkgs.smartmontools}/sbin/smartd --no-fork --pidfile=/var/run/smartd.pid ${smartdFlags}"; + path = [ pkgs.smartmontools ]; + + exec = "smartd --no-fork --pidfile=/var/run/smartd.pid ${smartdFlags}"; }; };