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 =
|
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);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue