From fa5a20c542b9c3d2e6f09385e5241a62581ac5e6 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Thu, 2 Jan 2020 23:45:29 +0100 Subject: [PATCH] aplysia: enable rsyncd --- aplysia.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/aplysia.nix b/aplysia.nix index 5a16674..cce50ad 100644 --- a/aplysia.nix +++ b/aplysia.nix @@ -169,6 +169,7 @@ in networking.firewall = { allowedTCPPorts = [ 445 139 # samba + config.services.rsyncd.port ]; allowedUDPPorts = [ 137 138 # samba @@ -204,6 +205,16 @@ in ${pkgs.hdparm}/bin/hdparm -B127 -S100 /dev/sd{a,b,c,d,e,f} ''; + services.rsyncd = { + enable = true; + modules = { + lr_mobile = { + path = "/mnt/aplysia/fotos/lr_mobile"; + "read only" = "yes"; + }; + }; + }; + systemd.services.backup-fotos = rec { wants = [ "network.target" "mnt-aplysia.mount" ]; after = wants;