This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-08-25 13:17:53 +02:00
parent dbf3b87b2d
commit 19f151cb81

View File

@@ -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}";
}; };
}; };
}; };