rclone
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ pkgs, ... }@all: with all; {
|
||||
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 = {
|
||||
enable = true;
|
||||
package = pkgs.rclone;
|
||||
@@ -11,18 +11,20 @@
|
||||
vendor = "owncloud"; # copyparty
|
||||
url = "https://file.${hyper.domain}/";
|
||||
user = hyper.user;
|
||||
pacer_min_sleep = "0.01ms";
|
||||
};
|
||||
mounts = {
|
||||
"" = {
|
||||
enable = true;
|
||||
mountPoints = "${hyper.home}/file.nx2.site/";
|
||||
mountPoint = "${hyper.home}/file.nx2.site/";
|
||||
options = {
|
||||
vfs-cache-mode = "full";
|
||||
vfs-cache-mode = "writes";
|
||||
dir-cache-time = "5s";
|
||||
};
|
||||
};
|
||||
};
|
||||
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