From 66d6880750fc2d1ee1e6170532f5915c2a6aab4f Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 14 May 2024 12:41:37 +0200 Subject: [PATCH] Simplify `rclone` config --- lib/modules/rclone.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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); }; };