Fix nextcloud sync by excluding direnv

This commit is contained in:
SebastianStork 2024-10-23 22:01:56 +02:00
parent e060682402
commit ebf5fde405
2 changed files with 6 additions and 0 deletions

View file

@ -13,6 +13,10 @@ let
"Videos" "Videos"
"Projects" "Projects"
]; ];
excludeList = pkgs.concatText "nextcloud-sync-exclude" [
"${pkgs.nextcloud-client}/etc/Nextcloud/sync-exclude.lst"
./sync-exclude.lst
];
syncCommand = syncCommand =
path: path:
"nextcloudcmd ${ "nextcloudcmd ${
@ -21,6 +25,7 @@ let
"--password \"$(cat ${config.sops.secrets."nextcloud-password".path})\"" "--password \"$(cat ${config.sops.secrets."nextcloud-password".path})\""
"--path /Sync/${path}" "--path /Sync/${path}"
"--non-interactive" "--non-interactive"
"--exclude ${excludeList}"
"~/${path}" "~/${path}"
"https://cloud.stork-atlas.ts.net" "https://cloud.stork-atlas.ts.net"
] ]

View file

@ -0,0 +1 @@
.direnv