mirror of
https://github.com/nix-community/home-manager.git
synced 2026-11-05 12:20:50 +00:00
Add a per-mount 'mountType' option ('mount' | 'nfsmount') selecting
which rclone command performs the mount. 'nfsmount' runs rclone's
in-process NFS server and mounts it via the system NFS client, so no
FUSE driver is needed — on macOS this removes the module's documented
macFUSE requirement (and the kernel-extension approval plus Reduced
Security boot policy that come with it).
When 'nfsmount' is selected, 'nfs-cache-type = "disk"' is merged
into the mount's options (user-overridable, mirroring the existing
'vfs-cache-mode' defaulting) so NFS file handles survive rclone
restarts; with the in-memory default, every service restart would
leave the kernel client with stale handles.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
14 lines
587 B
Nix
14 lines
587 B
Nix
{ lib, pkgs, ... }:
|
|
{
|
|
rclone-basic-configuration = ./basic-configuration.nix;
|
|
}
|
|
// lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
|
rclone-mount-service-generation = ./mount-service-generation.nix;
|
|
rclone-serve-service-generation = ./serve-service-generation.nix;
|
|
}
|
|
// lib.optionalAttrs pkgs.stdenv.hostPlatform.isDarwin {
|
|
rclone-mount-service-generation-darwin = ./mount-service-generation-darwin.nix;
|
|
rclone-nfsmount-service-generation-darwin = ./nfsmount-service-generation-darwin.nix;
|
|
rclone-serve-service-generation-darwin = ./serve-service-generation-darwin.nix;
|
|
}
|