mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
rclone: migrate to lib.cli.toCommandLineShellGNU
Replace deprecated lib.cli.toGNUCommandLineShell with lib.cli.toCommandLineShellGNU. This changes the behavior but `rclone` supports the `=` separator for its flags. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
@@ -158,7 +158,7 @@ in
|
||||
description = ''
|
||||
An attribute set of option values passed to `rclone mount`. To set
|
||||
a boolean option, assign it `true` or `false`. See
|
||||
<https://nixos.org/manual/nixpkgs/stable/#function-library-lib.cli.toGNUCommandLineShell>
|
||||
<https://nixos.org/manual/nixpkgs/stable/#function-library-lib.cli.toCommandLineShellGNU>
|
||||
for more details on the format.
|
||||
|
||||
Some caching options are set by default, namely `vfs-cache-mode = "full"`
|
||||
@@ -374,7 +374,7 @@ in
|
||||
ExecStart = lib.concatStringsSep " " [
|
||||
(lib.getExe cfg.package)
|
||||
"mount"
|
||||
(lib.cli.toGNUCommandLineShell { } mount.options)
|
||||
(lib.cli.toCommandLineShellGNU { } mount.options)
|
||||
"${remote-name}:${mount-path}"
|
||||
"${mount.mountPoint}"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user