diff --git a/system/home/scripts/default.nix b/system/home/scripts/default.nix index 160b3192..461e8400 100644 --- a/system/home/scripts/default.nix +++ b/system/home/scripts/default.nix @@ -7,6 +7,7 @@ (pkgs.writeShellScriptBin "rsync-local-config" (builtins.readFile ./shell/rsync-local-config.sh)) (pkgs.writeShellScriptBin "xdg-query-program" (builtins.readFile ./shell/xdg-query-program.sh)) (pkgs.writeShellScriptBin "animate-wallpaper" (builtins.readFile ./shell/animate-wallpaper.sh)) + (pkgs.writeShellScriptBin "mount-protondrive" (builtins.readFile ./shell/mount-protondrive.sh)) (pkgs.writeShellScriptBin "mount-onedrive" (builtins.readFile ./shell/mount-onedrive.sh)) ]; } diff --git a/system/home/scripts/shell/mount-protondrive.sh b/system/home/scripts/shell/mount-protondrive.sh new file mode 100644 index 00000000..ae6a422c --- /dev/null +++ b/system/home/scripts/shell/mount-protondrive.sh @@ -0,0 +1,3 @@ +PROTONDRIVE="$HOME/ProtonDrive" +[ -d "$PROTONDRIVE" ] || mkdir -p "$PROTONDRIVE" +[ -z "$(ls -A "$PROTONDRIVE")" ] && rclone --vfs-cache-mode writes mount --daemon ProtonDrive: "$PROTONDRIVE"