aplysia: enable rsyncd

This commit is contained in:
Gabriel Ebner 2020-01-02 23:45:29 +01:00
parent 4bcdee4a28
commit fa5a20c542

@ -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;