From efb2e66f2af9ed7b53c1f3b1eddb79f1baada415 Mon Sep 17 00:00:00 2001 From: MoritzBoehme Date: Tue, 12 Oct 2021 17:52:38 +0200 Subject: [PATCH] fixed permissions and ignore certain folders --- modules/services/diskstation/default.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/modules/services/diskstation/default.nix b/modules/services/diskstation/default.nix index c0f7afd..9f03686 100644 --- a/modules/services/diskstation/default.nix +++ b/modules/services/diskstation/default.nix @@ -53,7 +53,18 @@ services.unison = { enable = true; pairs = { - keepass.roots = [ "/home/moritz/Keepass" "/auto/keepass" ]; + keepass = { + roots = [ "/home/moritz/Keepass" "/auto/keepass" ]; + commandOptions = { + auto = "true"; + batch = "true"; + log = "false"; + repeat = "watch"; + sshcmd = "\${pkgs.openssh}/bin/ssh"; + ui = "text"; + ignore = "Name {lost+found}"; + }; + }; diskstation = { roots = [ "/home/moritz/Documents" "/media/diskstation" ]; commandOptions = { @@ -64,6 +75,9 @@ sshcmd = "\${pkgs.openssh}/bin/ssh"; ui = "text"; fastcheck = "true"; + # debug = "verbose"; + perms = "0o1666"; + ignore = "Name {.direnv}"; }; }; };