MyNixOS website logo
option

programs.rclone.remotes.<name>.serve

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

For each entry, to perform the equivalent of rclone serve protocol remote:path/to/files — as described in the rclone documentation https://rclone.org/commands/rclone_serve/ — 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;
    protocol = "http";
    options = {
      addr = "127.0.0.1:3000";
      dir-cache-time = "5000h";
      poll-interval = "10s";
      umask = "002";
      user-agent = "Laptop";
    };
  };
}