diff --git a/lib/modules/rclone.nix b/lib/modules/rclone.nix index 46886b3..6a3e3a6 100644 --- a/lib/modules/rclone.nix +++ b/lib/modules/rclone.nix @@ -25,21 +25,19 @@ ExecStartPre = let - scriptName = "rclone-pre"; - script = pkgs.writeShellScriptBin scriptName '' + script = pkgs.writeShellScriptBin "rclone-pre" '' sleep 10 ''; in - "${script}/bin/${scriptName}"; + (lib.getExe script); ExecStart = let - scriptName = "rclone"; - script = pkgs.writeShellScriptBin scriptName '' + script = pkgs.writeShellScriptBin "rclone" '' systemctl --user start rclone.target ''; in - "${script}/bin/${scriptName}"; + (lib.getExe script); }; };