This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-08-25 13:34:38 +02:00
parent 880b3abd60
commit 1191019cf8

View File

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