This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-08-24 14:56:10 +02:00
parent eba7f91576
commit 151f61d31e
2 changed files with 32 additions and 0 deletions

31
home-modules/rclone.nix Normal file
View File

@@ -0,0 +1,31 @@
{ pkgs, ... }@all: with all; {
home.packages = with pkgs; [ rclone ];
sops.secrets."copyparty/user-password/${hyper.user}".path = "%r/secrets/copyparty/user-password/${hyper.user}";
programs.rclone = {
enable = true;
package = pkgs.rclone;
remotes = {
"file.${hyper.domain}" = {
config = {
type = "webdav";
vendor = "owncloud"; # copyparty
url = "https://file.${hyper.domain}/";
user = hyper.user;
};
mounts = {
"" = {
enable = true;
mountPoints = "${hyper.home}/file.nx2.site/";
options = {
vfs-cache-mode = "full";
};
};
};
secrets = {
pass = "/run/usr/1000/secrets/copyparty/user-password/${hyper.user}";
};
};
};
};
}