mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
Fix nextcloud sync by excluding direnv
This commit is contained in:
parent
e060682402
commit
ebf5fde405
2 changed files with 6 additions and 0 deletions
|
|
@ -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"
|
||||||
]
|
]
|
||||||
1
modules/home/nextcloud-sync/sync-exclude.lst
Normal file
1
modules/home/nextcloud-sync/sync-exclude.lst
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
.direnv
|
||||||
Loading…
Add table
Add a link
Reference in a new issue