Simplify rclone
config
This commit is contained in:
parent
8c55205c66
commit
66d6880750
1 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue