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