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 =
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);
};
};