Simplify rclone config

This commit is contained in:
Manuel Thalmann 2024-05-14 12:41:37 +02:00
parent 8c55205c66
commit 66d6880750

View file

@ -25,21 +25,19 @@
ExecStartPre = ExecStartPre =
let let
scriptName = "rclone-pre"; script = pkgs.writeShellScriptBin "rclone-pre" ''
script = pkgs.writeShellScriptBin scriptName ''
sleep 10 sleep 10
''; '';
in in
"${script}/bin/${scriptName}"; (lib.getExe script);
ExecStart = ExecStart =
let let
scriptName = "rclone"; script = pkgs.writeShellScriptBin "rclone" ''
script = pkgs.writeShellScriptBin scriptName ''
systemctl --user start rclone.target systemctl --user start rclone.target
''; '';
in in
"${script}/bin/${scriptName}"; (lib.getExe script);
}; };
}; };