aplysia: enable rsyncd
This commit is contained in:
parent
4bcdee4a28
commit
fa5a20c542
11
aplysia.nix
11
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;
|
||||
|
Loading…
Reference in New Issue
Block a user