From bfc3ee5264e41cf4da0bb40741ed01f69a8d0dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Fri, 28 Feb 2025 16:20:41 +0100 Subject: [PATCH] 574 current 1970-01-01 01:00:00 24.11.20250221.11415c7 6.6.79 * --- modules/home/programs/rclone.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/modules/home/programs/rclone.nix b/modules/home/programs/rclone.nix index ef8977d..9f8981e 100644 --- a/modules/home/programs/rclone.nix +++ b/modules/home/programs/rclone.nix @@ -69,6 +69,34 @@ in { }; Install.WantedBy = ["default.target"]; }; + music-mount = { + Unit = { + Description = "Mount the music directory from my cloud"; + After = ["network-online.target"]; + }; + Service = { + Type = "notify"; + ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p \"%h/Music\""; + ExecStart = "${pkgs.rclone}/bin/rclone --config=${config.sops.templates."rclone.conf".path} --vfs-cache-mode full mount \"cloud:Music\" \"%h/Music\""; + ExecStop = "/bin/fusermount -u \"%h/Music\""; + Environment = ["PATH=/run/wrappers/bin/:$PATH"]; + }; + Install.WantedBy = ["default.target"]; + }; + videos-mount = { + Unit = { + Description = "Mount the videos directory from my cloud"; + After = ["network-online.target"]; + }; + Service = { + Type = "notify"; + ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p \"%h/Videos\""; + ExecStart = "${pkgs.rclone}/bin/rclone --config=${config.sops.templates."rclone.conf".path} --vfs-cache-mode full mount \"cloud:Videos\" \"%h/Videos\""; + ExecStop = "/bin/fusermount -u \"%h/Videos\""; + Environment = ["PATH=/run/wrappers/bin/:$PATH"]; + }; + Install.WantedBy = ["default.target"]; + }; }; }; }