rclone
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{ pkgs, ... }@all: with all; {
|
{ pkgs, ... }@all: with all; {
|
||||||
home.packages = with pkgs; [ rclone ];
|
home.packages = with pkgs; [ rclone ];
|
||||||
sops.secrets."copyparty/user-password/${hyper.user}".path = "%r/secrets/copyparty/user-password/${hyper.user}";
|
sops.secrets."nx2site/copyparty/user-password/${hyper.user}".path = "%r/secrets/copyparty/user-password/${hyper.user}";
|
||||||
programs.rclone = {
|
programs.rclone = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.rclone;
|
package = pkgs.rclone;
|
||||||
@@ -11,18 +11,20 @@
|
|||||||
vendor = "owncloud"; # copyparty
|
vendor = "owncloud"; # copyparty
|
||||||
url = "https://file.${hyper.domain}/";
|
url = "https://file.${hyper.domain}/";
|
||||||
user = hyper.user;
|
user = hyper.user;
|
||||||
|
pacer_min_sleep = "0.01ms";
|
||||||
};
|
};
|
||||||
mounts = {
|
mounts = {
|
||||||
"" = {
|
"" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mountPoints = "${hyper.home}/file.nx2.site/";
|
mountPoint = "${hyper.home}/file.nx2.site/";
|
||||||
options = {
|
options = {
|
||||||
vfs-cache-mode = "full";
|
vfs-cache-mode = "writes";
|
||||||
|
dir-cache-time = "5s";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
secrets = {
|
secrets = {
|
||||||
pass = "/run/usr/1000/secrets/copyparty/user-password/${hyper.user}";
|
pass = "/run/user/1000/secrets/copyparty/user-password/${hyper.user}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user