mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 15:41:02 +01:00
rclone: make secret injection non-interactive (#6919)
Pass `--non-interactive` flag to `rclone config update` calls so that an incomplete config is not used, resulting in failure on some remotes, for example gdrive.
This commit is contained in:
parent
c803a38927
commit
1ad1232399
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ in
|
||||||
${lib.getExe cfg.package} config update \
|
${lib.getExe cfg.package} config update \
|
||||||
${remote.name} config_refresh_token=false \
|
${remote.name} config_refresh_token=false \
|
||||||
${secret} "$(cat ${secretFile})" \
|
${secret} "$(cat ${secretFile})" \
|
||||||
--quiet > /dev/null
|
--quiet --non-interactive > /dev/null
|
||||||
'') remote.value.secrets or { };
|
'') remote.value.secrets or { };
|
||||||
|
|
||||||
injectAllSecrets = lib.concatMap injectSecret (lib.mapAttrsToList lib.nameValuePair cfg.remotes);
|
injectAllSecrets = lib.concatMap injectSecret (lib.mapAttrsToList lib.nameValuePair cfg.remotes);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue