m 2 time-machine: init

This commit is contained in:
makefu 2017-05-19 11:54:37 +02:00
parent a16ec260c6
commit 7383125f6b
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -0,0 +1,31 @@
let
time-machine-path = "/media/crypt2/backup/time-machine/misa";
in {
networking.firewall.allowedTCPPorts = [
548 # netatalk
];
services = {
netatalk = {
enable = true;
volumes = {
"misa-time-machine" = {
"time machine" = "yes";
path = time-machine-path;
"valid users" = "misa";
};
};
};
avahi = {
enable = true;
nssmdns = true;
publish = {
enable = true;
userServices = true;
};
};
};
}