From ebf5fde40588493ebcd73feab5dc5fcced309af0 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Wed, 23 Oct 2024 22:01:56 +0200 Subject: [PATCH] Fix nextcloud sync by excluding direnv --- .../home/{nextcloud-sync.nix => nextcloud-sync/default.nix} | 5 +++++ modules/home/nextcloud-sync/sync-exclude.lst | 1 + 2 files changed, 6 insertions(+) rename modules/home/{nextcloud-sync.nix => nextcloud-sync/default.nix} (87%) create mode 100644 modules/home/nextcloud-sync/sync-exclude.lst diff --git a/modules/home/nextcloud-sync.nix b/modules/home/nextcloud-sync/default.nix similarity index 87% rename from modules/home/nextcloud-sync.nix rename to modules/home/nextcloud-sync/default.nix index 0847dac..8404e41 100644 --- a/modules/home/nextcloud-sync.nix +++ b/modules/home/nextcloud-sync/default.nix @@ -13,6 +13,10 @@ let "Videos" "Projects" ]; + excludeList = pkgs.concatText "nextcloud-sync-exclude" [ + "${pkgs.nextcloud-client}/etc/Nextcloud/sync-exclude.lst" + ./sync-exclude.lst + ]; syncCommand = path: "nextcloudcmd ${ @@ -21,6 +25,7 @@ let "--password \"$(cat ${config.sops.secrets."nextcloud-password".path})\"" "--path /Sync/${path}" "--non-interactive" + "--exclude ${excludeList}" "~/${path}" "https://cloud.stork-atlas.ts.net" ] diff --git a/modules/home/nextcloud-sync/sync-exclude.lst b/modules/home/nextcloud-sync/sync-exclude.lst new file mode 100644 index 0000000..92b2793 --- /dev/null +++ b/modules/home/nextcloud-sync/sync-exclude.lst @@ -0,0 +1 @@ +.direnv