From 53842bb68037b440a42bab3e960ed5367d974976 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 16 May 2024 16:52:47 +0200 Subject: [PATCH] Set default `rclone` mount path --- lib/modules/rclone.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/modules/rclone.nix b/lib/modules/rclone.nix index ee8e1dd..683d613 100644 --- a/lib/modules/rclone.nix +++ b/lib/modules/rclone.nix @@ -53,11 +53,12 @@ let }; mkProvider = ( - { config, ... }: { + { config, name, ... }: { options = { path = lib.mkOption { type = lib.types.str; description = "The path to mount the remote file system to."; + default = "$HOME/.mnt/${lib.escapeShellArg name}"; }; autoStart = lib.mkOption {