MyNixOS website logo
option

programs.rclone.remotes.<name>.mounts

An attribute set mapping remote file paths to their corresponding mount point configurations.

For each entry, to perform the equivalent of rclone mount remote:path/to/files /path/to/local/mount — as described in the rclone documentation https://rclone.org/commands/rclone_mount/ — we create a key-value pair like this: "path/to/files/on/remote" = { ... }.

Declarations
Type
attribute set of (submodule)
Default
{ }
Example
{
  "path/to/files" = {
    enable = true;
    mountPoint = "/home/alice/rclone-mount";
    options = {
      dir-cache-time = "5000h";
      poll-interval = "10s";
      umask = "002";
      user-agent = "Laptop";
    };
  };
}